diff --git a/ci-operator/config/openshift/cluster-cloud-controller-manager-operator/openshift-cluster-cloud-controller-manager-operator-master.yaml b/ci-operator/config/openshift/cluster-cloud-controller-manager-operator/openshift-cluster-cloud-controller-manager-operator-master.yaml index 7a102e68f72fd..c5e48485c9a88 100644 --- a/ci-operator/config/openshift/cluster-cloud-controller-manager-operator/openshift-cluster-cloud-controller-manager-operator-master.yaml +++ b/ci-operator/config/openshift/cluster-cloud-controller-manager-operator/openshift-cluster-cloud-controller-manager-operator-master.yaml @@ -78,6 +78,10 @@ tests: steps: cluster_profile: aws workflow: openshift-e2e-aws-ccm-install +- as: e2e-azure-ccm + steps: + cluster_profile: azure4 + workflow: openshift-e2e-azure-ccm zz_generated_metadata: branch: master org: openshift diff --git a/ci-operator/jobs/openshift/cluster-cloud-controller-manager-operator/openshift-cluster-cloud-controller-manager-operator-master-presubmits.yaml b/ci-operator/jobs/openshift/cluster-cloud-controller-manager-operator/openshift-cluster-cloud-controller-manager-operator-master-presubmits.yaml index a8bc2b789d6be..02b2d812b883e 100644 --- a/ci-operator/jobs/openshift/cluster-cloud-controller-manager-operator/openshift-cluster-cloud-controller-manager-operator-master-presubmits.yaml +++ b/ci-operator/jobs/openshift/cluster-cloud-controller-manager-operator/openshift-cluster-cloud-controller-manager-operator-master-presubmits.yaml @@ -265,6 +265,72 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )e2e-aws-upgrade,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - master + cluster: build01 + context: ci/prow/e2e-azure-ccm + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-cluster-cloud-controller-manager-operator-master-e2e-azure-ccm + rerun_command: /test e2e-azure-ccm + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/usr/local/e2e-azure-ccm-cluster-profile + - --target=e2e-azure-ccm + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /usr/local/e2e-azure-ccm-cluster-profile + name: cluster-profile + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: cluster-profile + projected: + sources: + - secret: + name: cluster-secrets-azure4 + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )e2e-azure-ccm,?($|\s.*) - agent: kubernetes always_run: false branches: diff --git a/ci-operator/step-registry/ccm/conf/apply-feature-gate/ccm-conf-apply-feature-gate-commands.sh b/ci-operator/step-registry/ccm/conf/apply-feature-gate/ccm-conf-apply-feature-gate-commands.sh index da20bbedf4c03..e9fc9e86fdf06 100644 --- a/ci-operator/step-registry/ccm/conf/apply-feature-gate/ccm-conf-apply-feature-gate-commands.sh +++ b/ci-operator/step-registry/ccm/conf/apply-feature-gate/ccm-conf-apply-feature-gate-commands.sh @@ -71,6 +71,8 @@ spec: - ExternalCloudProvider - CSIMigrationAWS - CSIMigrationOpenStack + - CSIMigrationAzureDisk + - CSIDriverAzureDisk featureSet: CustomNoUpgrade EOF } diff --git a/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-commands.sh b/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-commands.sh index 97aa3686dfa52..a52a53d88d575 100644 --- a/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-commands.sh +++ b/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-commands.sh @@ -17,5 +17,7 @@ spec: - ExternalCloudProvider - CSIMigrationAWS - CSIMigrationOpenStack + - CSIMigrationAzureDisk + - CSIDriverAzureDisk featureSet: CustomNoUpgrade EOF diff --git a/ci-operator/step-registry/openshift/e2e/azure/ccm/OWNERS b/ci-operator/step-registry/openshift/e2e/azure/ccm/OWNERS new file mode 100644 index 0000000000000..a81df72cdd2c9 --- /dev/null +++ b/ci-operator/step-registry/openshift/e2e/azure/ccm/OWNERS @@ -0,0 +1,12 @@ +approvers: +- danil-grigorev +- elmiko +- fedosin +- joelspeed +- lobziik +reviewers: +- danil-grigorev +- elmiko +- fedosin +- joelspeed +- lobziik diff --git a/ci-operator/step-registry/openshift/e2e/azure/ccm/install/OWNERS b/ci-operator/step-registry/openshift/e2e/azure/ccm/install/OWNERS new file mode 100644 index 0000000000000..a81df72cdd2c9 --- /dev/null +++ b/ci-operator/step-registry/openshift/e2e/azure/ccm/install/OWNERS @@ -0,0 +1,12 @@ +approvers: +- danil-grigorev +- elmiko +- fedosin +- joelspeed +- lobziik +reviewers: +- danil-grigorev +- elmiko +- fedosin +- joelspeed +- lobziik diff --git a/ci-operator/step-registry/openshift/e2e/azure/ccm/install/openshift-e2e-azure-ccm-install-workflow.metadata.json b/ci-operator/step-registry/openshift/e2e/azure/ccm/install/openshift-e2e-azure-ccm-install-workflow.metadata.json new file mode 100644 index 0000000000000..498040befe318 --- /dev/null +++ b/ci-operator/step-registry/openshift/e2e/azure/ccm/install/openshift-e2e-azure-ccm-install-workflow.metadata.json @@ -0,0 +1,19 @@ +{ + "path": "openshift/e2e/azure/ccm/install/openshift-e2e-azure-ccm-install-workflow.yaml", + "owners": { + "approvers": [ + "danil-grigorev", + "elmiko", + "fedosin", + "joelspeed", + "lobziik" + ], + "reviewers": [ + "danil-grigorev", + "elmiko", + "fedosin", + "joelspeed", + "lobziik" + ] + } +} \ No newline at end of file diff --git a/ci-operator/step-registry/openshift/e2e/azure/ccm/install/openshift-e2e-azure-ccm-install-workflow.yaml b/ci-operator/step-registry/openshift/e2e/azure/ccm/install/openshift-e2e-azure-ccm-install-workflow.yaml new file mode 100644 index 0000000000000..4a805a72fdd80 --- /dev/null +++ b/ci-operator/step-registry/openshift/e2e/azure/ccm/install/openshift-e2e-azure-ccm-install-workflow.yaml @@ -0,0 +1,16 @@ +workflow: + as: openshift-e2e-azure-ccm-install + steps: + pre: + - chain: ipi-conf-azure + - ref: ccm-conf-pre-create-feature-gate + - chain: ipi-install + test: + - ref: openshift-e2e-test + post: + - chain: gather-core-dump + - chain: ipi-azure-post + env: + TEST_CSI_DRIVER_MANIFEST: manifest-aws-ebs.yaml + documentation: |- + The Openshift E2E Azure CCM install workflow executes the common end-to-end test suite on Azure with a cluster configuration including CCM pods diff --git a/ci-operator/step-registry/openshift/e2e/azure/ccm/openshift-e2e-azure-ccm-workflow.metadata.json b/ci-operator/step-registry/openshift/e2e/azure/ccm/openshift-e2e-azure-ccm-workflow.metadata.json new file mode 100644 index 0000000000000..22561100a4c6e --- /dev/null +++ b/ci-operator/step-registry/openshift/e2e/azure/ccm/openshift-e2e-azure-ccm-workflow.metadata.json @@ -0,0 +1,19 @@ +{ + "path": "openshift/e2e/azure/ccm/openshift-e2e-azure-ccm-workflow.yaml", + "owners": { + "approvers": [ + "danil-grigorev", + "elmiko", + "fedosin", + "joelspeed", + "lobziik" + ], + "reviewers": [ + "danil-grigorev", + "elmiko", + "fedosin", + "joelspeed", + "lobziik" + ] + } +} \ No newline at end of file diff --git a/ci-operator/step-registry/openshift/e2e/azure/ccm/openshift-e2e-azure-ccm-workflow.yaml b/ci-operator/step-registry/openshift/e2e/azure/ccm/openshift-e2e-azure-ccm-workflow.yaml new file mode 100644 index 0000000000000..6ccfbf63528d7 --- /dev/null +++ b/ci-operator/step-registry/openshift/e2e/azure/ccm/openshift-e2e-azure-ccm-workflow.yaml @@ -0,0 +1,23 @@ +workflow: + as: openshift-e2e-azure-ccm + steps: + pre: + - chain: ipi-azure-pre + - ref: ccm-conf-apply-feature-gate + - ref: storage-conf-csi-azure-disk + - ref: storage-conf-wait-for-csi-driver + - ref: storage-conf-wait-for-csi-migration + test: + - ref: openshift-e2e-test + post: + - chain: gather-core-dump + - chain: ipi-azure-post + env: + # for storage-conf-wait-for-csi-driver + CLUSTERCSIDRIVER: disk.csi.azure.com + TRUECONDITIONS: AzureDiskDriverControllerServiceControllerAvailable AzureDiskDriverNodeServiceControllerAvailable + TEST_CSI_DRIVER_MANIFEST: manifest-azure-disk.yaml + TEST_SUITE: openshift/csi + documentation: |- + The Openshift E2E Azure workflow using CCM as a primary mean to initialize nodes. + Executes the common end-to-end test suite on Azure to test updated cluster configuration.