From dd63219daef5b221e20c74192f4aa5c43c073a9c Mon Sep 17 00:00:00 2001 From: Danil-Grigorev Date: Wed, 5 May 2021 10:16:21 +0200 Subject: [PATCH] Pre-create CCM feature gate during cluster install --- .../ccm/conf/pre-create-feature-gate/OWNERS | 14 +++++++++++++ ...m-conf-pre-create-feature-gate-commands.sh | 21 +++++++++++++++++++ ...-pre-create-feature-gate-ref.metadata.json | 21 +++++++++++++++++++ .../ccm-conf-pre-create-feature-gate-ref.yaml | 10 +++++++++ 4 files changed, 66 insertions(+) create mode 100644 ci-operator/step-registry/ccm/conf/pre-create-feature-gate/OWNERS create mode 100644 ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-commands.sh create mode 100644 ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-ref.metadata.json create mode 100644 ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-ref.yaml diff --git a/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/OWNERS b/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/OWNERS new file mode 100644 index 0000000000000..e14619fe50da9 --- /dev/null +++ b/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/OWNERS @@ -0,0 +1,14 @@ +approvers: +- danil-grigorev +- elmiko +- fedosin +- joelspeed +- mandre +- mdbooth +reviewers: +- danil-grigorev +- elmiko +- fedosin +- joelspeed +- mandre +- mdbooth 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 new file mode 100644 index 0000000000000..97aa3686dfa52 --- /dev/null +++ b/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-commands.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -euo pipefail + +cat < ${SHARED_DIR}/manifest_feature_gate.yaml +--- +apiVersion: config.openshift.io/v1 +kind: FeatureGate +metadata: + annotations: + include.release.openshift.io/self-managed-high-availability: "true" + include.release.openshift.io/single-node-developer: "true" + release.openshift.io/create-only: "true" + name: cluster +spec: + customNoUpgrade: + enabled: + - ExternalCloudProvider + - CSIMigrationAWS + - CSIMigrationOpenStack + featureSet: CustomNoUpgrade +EOF diff --git a/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-ref.metadata.json b/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-ref.metadata.json new file mode 100644 index 0000000000000..dca4182c69dec --- /dev/null +++ b/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-ref.metadata.json @@ -0,0 +1,21 @@ +{ + "path": "ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-ref.yaml", + "owners": { + "approvers": [ + "danil-grigorev", + "elmiko", + "fedosin", + "joelspeed", + "mandre", + "mdbooth" + ], + "reviewers": [ + "danil-grigorev", + "elmiko", + "fedosin", + "joelspeed", + "mandre", + "mdbooth" + ] + } +} \ No newline at end of file diff --git a/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-ref.yaml b/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-ref.yaml new file mode 100644 index 0000000000000..547e777f19ae9 --- /dev/null +++ b/ci-operator/step-registry/ccm/conf/pre-create-feature-gate/ccm-conf-pre-create-feature-gate-ref.yaml @@ -0,0 +1,10 @@ +ref: + as: ccm-conf-pre-create-feature-gate + commands: ccm-conf-pre-create-feature-gate-commands.sh + from: cli + resources: + requests: + cpu: 10m + memory: 100Mi + documentation: |- + Apply custom featureGate configuration to cluster to enable CCM + CSI functionality