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