Skip to content

Commit 50c939f

Browse files
clubandersonclaude
andcommitted
šŸ› Fix Helm ownership collision for prometheus-ca ConfigMap in shared namespace
When multiple WVA releases are installed on the same cluster from different namespaces, they both try to create a ConfigMap with the same name in the shared openshift-user-workload-monitoring namespace. Helm's ownership annotation (meta.helm.sh/release-namespace) rejects the second install. Use the clusterResourceName helper (which appends .Release.Namespace) instead of fullname to make the ConfigMap name unique per release namespace. This is consistent with how all ClusterRoles and ClusterRoleBindings in the chart already handle multi-namespace uniqueness. Signed-off-by: Andy Anderson <andy@clubanderson.com> Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Andrew Anderson <andy@clubanderson.com>
1 parent aff15ca commit 50c939f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ā€Žcharts/workload-variant-autoscaler/templates/prometheus-ca-configmap-prom.yamlā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: ConfigMap
44
metadata:
5-
name: {{ include "workload-variant-autoscaler.fullname" . }}-prometheus-ca
5+
name: {{ include "workload-variant-autoscaler.clusterResourceName" . }}-prometheus-ca
66
namespace: {{ .Values.wva.prometheus.monitoringNamespace }}
77
labels:
88
{{- include "workload-variant-autoscaler.labels" . | nindent 4 }}

0 commit comments

Comments
Ā (0)