Skip to content

Commit

Permalink
Adding pod labels and annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderv32 committed Dec 18, 2024
1 parent 977e2c5 commit ff05f32
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/hnc/templates/hnc-controller-manager-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8}}
{{- end }}
labels:
control-plane: controller-manager-ha
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8}}
{{- end }}
spec:
containers:
- args:
Expand Down
6 changes: 6 additions & 0 deletions charts/hnc/templates/hnc-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8}}
{{- end }}
labels:
control-plane: controller-manager
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8}}
{{- end }}
spec:
containers:
- args:
Expand Down
2 changes: 2 additions & 0 deletions charts/hnc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ ha:
nodeSelector: {}
affinity: {}
tolerations: []
podAnnotations: {}
podLabels: {}

0 comments on commit ff05f32

Please sign in to comment.