From 835b48bbe6b20d6cda73b3ccf9c8b7b889340088 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 14 Sep 2022 22:47:23 -0700 Subject: [PATCH] WIP: ci-operator/step-registry/ipi/conf/telemetry: Inject manifest conflict Try to confirm openshift/installer#6247 works as expected --- .../telemetry/ipi-conf-telemetry-commands.sh | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/ci-operator/step-registry/ipi/conf/telemetry/ipi-conf-telemetry-commands.sh b/ci-operator/step-registry/ipi/conf/telemetry/ipi-conf-telemetry-commands.sh index c49d91211fb5e..44ba14f42e29b 100755 --- a/ci-operator/step-registry/ipi/conf/telemetry/ipi-conf-telemetry-commands.sh +++ b/ci-operator/step-registry/ipi/conf/telemetry/ipi-conf-telemetry-commands.sh @@ -7,6 +7,29 @@ set -o pipefail if test true = "${TELEMETRY_ENABLED}" then echo "Nothing to do with TELEMETRY_ENABLED='${TELEMETRY_ENABLED}'" + +cat <<-EOF > "${SHARED_DIR}/manifest_cluster-monitoring-config-conflict-a.yaml" + apiVersion: v1 + kind: ConfigMap + metadata: + name: cluster-monitoring-config + namespace: openshift-monitoring + data: + config.yaml: + we: will never get this far, hopefully... + EOF + +cat <<-EOF > "${SHARED_DIR}/manifest_cluster-monitoring-config-conflict-b.yaml" + apiVersion: v1 + kind: ConfigMap + metadata: + name: cluster-monitoring-config + namespace: openshift-monitoring + data: + config.yaml: + because: this other manifest will conflict. + EOF + exit fi @@ -40,3 +63,14 @@ EOF CONFIG_CONTENTS="$(echo "${CONFIG_CONTENTS}" | yq-go m - "${PATCH}")" yq-go w --style folded -i "${CONFIG}" 'data."config.yaml"' "${CONFIG_CONTENTS}" cat "${CONFIG}" + +cat <<-EOF > "${SHARED_DIR}/manifest_cluster-monitoring-config-conflict.yaml" + apiVersion: v1 + kind: ConfigMap + metadata: + name: cluster-monitoring-config + namespace: openshift-monitoring + data: + config.yaml: + we: will never get this far, hopefully... + EOF