Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit ff05f32

Browse files
committed
Adding pod labels and annotations
1 parent 977e2c5 commit ff05f32

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

charts/hnc/templates/hnc-controller-manager-ha.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ spec:
1515
metadata:
1616
annotations:
1717
prometheus.io/scrape: "true"
18+
{{- with .Values.podAnnotations }}
19+
{{- toYaml . | nindent 8}}
20+
{{- end }}
1821
labels:
1922
control-plane: controller-manager-ha
23+
{{- with .Values.podLabels }}
24+
{{- toYaml . | nindent 8}}
25+
{{- end }}
2026
spec:
2127
containers:
2228
- args:

charts/hnc/templates/hnc-controller-manager.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ spec:
1414
metadata:
1515
annotations:
1616
prometheus.io/scrape: "true"
17+
{{- with .Values.podAnnotations }}
18+
{{- toYaml . | nindent 8}}
19+
{{- end }}
1720
labels:
1821
control-plane: controller-manager
22+
{{- with .Values.podLabels }}
23+
{{- toYaml . | nindent 8}}
24+
{{- end }}
1925
spec:
2026
containers:
2127
- args:

charts/hnc/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ ha:
3434
nodeSelector: {}
3535
affinity: {}
3636
tolerations: []
37+
podAnnotations: {}
38+
podLabels: {}

0 commit comments

Comments
 (0)