Skip to content

Commit

Permalink
cni-metrics-helper add podAnnotation value (#2748)
Browse files Browse the repository at this point in the history
Co-authored-by: Aliaksandr Prysmakou <81765132+prysmakou-sa@users.noreply.github.com>
  • Loading branch information
prysmakou and prysmakou-sa committed Jan 17, 2024
1 parent 4ff21d5 commit bcd8f3e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/cni-metrics-helper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The following table lists the configurable parameters for this chart and their d
| serviceAccount.name | The name of the ServiceAccount to use | nil |
| serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
| serviceAccount.annotations | Specifies the annotations for ServiceAccount | {} |
| podAnnotations | Specifies the annotations for pods | {} |
| revisionHistoryLimit | The number of revisions to keep | 10 |
| podSecurityContext | SecurityContext to set on the pod | {} |
| containerSecurityContext | SecurityContext to set on the container | {} |
Expand Down
6 changes: 6 additions & 0 deletions charts/cni-metrics-helper/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ spec:
k8s-app: cni-metrics-helper
template:
metadata:
{{- if .Values.podAnnotations }}
annotations:
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
k8s-app: cni-metrics-helper
spec:
Expand Down
2 changes: 2 additions & 0 deletions charts/cni-metrics-helper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ revisionHistoryLimit: 10
podSecurityContext: {}

containerSecurityContext: {}

podAnnotations: {}

0 comments on commit bcd8f3e

Please sign in to comment.