From 8a285edf91a37393fdfd3a3d77cbcb00668fc61e Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Mon, 9 Aug 2021 10:49:35 +0200 Subject: [PATCH] Fix namespace labels The component accidentally provided label `openshift.io/cluster-monitoring` with a boolean value which caused ArgoCD to discard the existing `metadata.labels` on the namespace object. This commit ensures that the label `openshift.io/cluster-monitoring` has a string value which fixes the problem. Fixes #2. --- component/main.jsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/main.jsonnet b/component/main.jsonnet index e1061de..d5b3b91 100644 --- a/component/main.jsonnet +++ b/component/main.jsonnet @@ -19,7 +19,7 @@ local namespace = operatorlib.validateInstance(params.namespace); // enable cluster monitoring when instantiating to manage // namespace openshift-operators-redhat 'openshift.io/cluster-monitoring': - namespace == 'openshift-operators-redhat', + '%s' % [ namespace == 'openshift-operators-redhat' ], }, }, },