Skip to content

Commit 8da3706

Browse files
committed
Ensure PromFed chart based HelmController has properly prefixed names
1 parent 6f46af8 commit 8da3706

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

charts/prometheus-federator/templates/helmcontroller.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
5-
name: prometheus-federator-helm-controller
5+
name: {{ template "prometheus-federator.name" . }}-helm-controller
66
namespace: {{ template "prometheus-federator.namespace" . }}
77
labels:
8-
app: prometheus-federator-helm-controller
8+
app: {{ template "prometheus-federator.name" . }}-helm-controller
99
spec:
1010
replicas: {{ .Values.helmController.deployment.replicas }}
1111
selector:
1212
matchLabels:
13-
app: prometheus-federator-helm-controller
13+
app: {{ template "prometheus-federator.name" . }}-helm-controller
1414
template:
1515
metadata:
1616
labels:
17-
app: prometheus-federator-helm-controller
17+
app: {{ template "prometheus-federator.name" . }}-helm-controller
1818
spec:
1919
# has to match cluster-admin service account
20-
serviceAccountName : prometheus-federator-helm-controller
20+
serviceAccountName : {{ template "prometheus-federator.name" . }}-helm-controller
2121
containers:
2222
- name: helm-controller
2323
image: {{ template "helm-controller.imageRegistry" . }} {{ .Values.helmController.deployment.image.repository }}:{{ .Values.helmController.deployment.image.tag }}
@@ -33,7 +33,7 @@ spec:
3333
fieldPath: spec.serviceAccountName
3434
# this sets the `managedBy` annotations, must match the ones in prometheus-federator
3535
- name: CONTROLLER_NAME
36-
value: {{ template "prometheus-federator.name" . }}
36+
value: {{ template "prometheus-federator.name" . }}-helm-controller
3737
# this sets the `systemNamespace` for the helm-controller to watch, should match the one in prometheus-federator
3838
- name: NAMESPACE
3939
value: {{ template "prometheus-federator.namespace" . }}

0 commit comments

Comments
 (0)