Skip to content

Commit

Permalink
Add filestore-csi for gcp workload identity test
Browse files Browse the repository at this point in the history
  • Loading branch information
chao007 committed Dec 18, 2024
1 parent 706475b commit 53b4c1b
Show file tree
Hide file tree
Showing 11 changed files with 142 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1655,17 +1655,19 @@ tests:
test:
- chain: openshift-e2e-test-qe-destructive
workflow: cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity
- as: gcp-ipi-proxy-oidc-arm-f28
- as: gcp-ipi-proxy-oidc-filestore-csi-arm-f28
cron: 44 8 27 * *
steps:
cluster_profile: gcp-qe
dependency_overrides:
OO_INDEX: quay.io/openshift-qe-optional-operators/aosqe-index:v4.18
env:
COMPUTE_NODE_TYPE: t2a-standard-4
EXTRACT_MANIFEST_INCLUDED: "true"
OCP_ARCH: arm64
test:
- chain: openshift-e2e-test-qe
workflow: cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity
workflow: cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-filestore-csi
- as: gcp-ipi-proxy-private-amd-f28-destructive
cron: 23 9 17 * *
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75892,7 +75892,7 @@ periodics:
ci.openshift.io/generator: prowgen
job-release: "4.18"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-gcp-ipi-proxy-oidc-arm-f28
name: periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-gcp-ipi-proxy-oidc-filestore-csi-arm-f28
spec:
containers:
- args:
Expand All @@ -75902,7 +75902,7 @@ periodics:
- --oauth-token-path=/usr/local/github-credentials/oauth
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --target=gcp-ipi-proxy-oidc-arm-f28
- --target=gcp-ipi-proxy-oidc-filestore-csi-arm-f28
- --variant=multi-nightly
command:
- ci-operator
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
approvers:
- jianlinliu
- gpei
- jianli-wei
reviewers:
- jianlinliu
- gpei
- jianli-wei
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"path": "cucushift/installer/rehearse/gcp/ipi/proxy/cco-manual-workload-identity/filestore-csi/cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-filestore-csi-workflow.yaml",
"owners": {
"approvers": [
"jianlinliu",
"gpei",
"jianli-wei"
],
"reviewers": [
"jianlinliu",
"gpei",
"jianli-wei"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
workflow:
as: cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-filestore-csi
steps:
pre:
- chain: cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-filestore-csi-provision
post:
- chain: cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-filestore-csi-deprovision
documentation: |-
The IPI workflow provides provision- and deprovision- steps that provision and
deprovision an OpenShift disconnected cluster (behind proxy) with a default
configurationon GCP, allowing job authors to inject their own end-to-end test logic.
All modifications to this workflow should be done by modifying the
`cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-{provision,deprovision}`
chains to allow other workflows to mimic and extend this base workflow without
a need to backport changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
approvers:
- jianlinliu
- gpei
- jianli-wei
reviewers:
- jianlinliu
- gpei
- jianli-wei
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"path": "cucushift/installer/rehearse/gcp/ipi/proxy/cco-manual-workload-identity/filestore-csi/deprovision/cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-filestore-csi-deprovision-chain.yaml",
"owners": {
"approvers": [
"jianlinliu",
"gpei",
"jianli-wei"
],
"reviewers": [
"jianlinliu",
"gpei",
"jianli-wei"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
chain:
as: cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-filestore-csi-deprovision
steps:
- ref: ipi-conf-gcp-filestore-workload-identity-federation-cleanup
- chain: cucushift-installer-rehearse-gcp-ipi-proxy-deprovision
- ref: ipi-conf-gcp-oidc-creds-deprovision
documentation: |-
This chain deprovisions all the components created by the
cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-provision chain.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
approvers:
- jianlinliu
- gpei
- jianli-wei
reviewers:
- jianlinliu
- gpei
- jianli-wei
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"path": "cucushift/installer/rehearse/gcp/ipi/proxy/cco-manual-workload-identity/filestore-csi/provision/cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-filestore-csi-provision-chain.yaml",
"owners": {
"approvers": [
"jianlinliu",
"gpei",
"jianli-wei"
],
"reviewers": [
"jianlinliu",
"gpei",
"jianli-wei"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
chain:
as: cucushift-installer-rehearse-gcp-ipi-proxy-cco-manual-workload-identity-filestore-csi-provision
steps:
- ref: gcp-provision-vpc
- ref: ignition-bastionhost
- ref: gcp-provision-bastionhost
- chain: ipi-conf-gcp
- ref: ipi-conf-proxy
- ref: ipi-conf-manual-creds
- ref: ipi-conf-gcp-oidc-creds-provision
- ref: ipi-conf-manual-creds-remove-unnecessary-creds
- chain: ipi-install
- ref: enable-qe-catalogsource
- chain: cucushift-installer-check
- ref: cucushift-installer-check-gcp-credentials-mode
- ref: ipi-conf-gcp-filestore-workload-identity-federation
- ref: optional-operators-subscribe
- ref: storage-create-csi-gcp-filestore
- ref: storage-conf-wait-for-csi-driver
env:
- name: RESTRICTED_NETWORK
default: "yes"
- name: CLUSTERCSIDRIVER
default: filestore.csi.storage.gke.io
- name: TEST_CSI_DRIVER_MANIFEST
default: manifest-gcp-filestore.yaml
- name: TRUECONDITIONS
default: GCPFILESTOREDriverControllerServiceControllerAvailable GCPFILESTOREDriverNodeServiceControllerAvailable
- name: OO_PACKAGE
default: gcp-filestore-csi-driver-operator
- name: OO_CHANNEL
default: stable
- name: OO_INSTALL_NAMESPACE
default: openshift-cluster-csi-drivers
- name: OO_TARGET_NAMESPACES
default: '!all'
- name: EVAL_CONFIG_ENVVARS
default: "yes"
- name: OO_CONFIG_ENVVARS
default: POOL_ID=$(cat ${SHARED_DIR}/gcp-filestore-pool-id),PROVIDER_ID=$(cat ${SHARED_DIR}/gcp-filestore-provider-id),SERVICE_ACCOUNT_EMAIL=$(cat ${SHARED_DIR}/gcp-filestore-service-account-email),PROJECT_NUMBER=$(cat ${SHARED_DIR}/gcp-filestore-project-number)
documentation: |-
Launch an IPI disconnected cluster (behind proxy) using Workload Identity on GCP for QE e2e tests.

0 comments on commit 53b4c1b

Please sign in to comment.