Skip to content

Commit a7fc4f0

Browse files
committed
add annotations + podAnnotations
Signed-off-by: beliys <[email protected]>
1 parent 2a9f59d commit a7fc4f0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

charts/k8s-image-availability-exporter/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ template "k8s-image-availability-exporter.fullname" . }}
5+
{{- with .Values.annotations }}
6+
annotations: {{- toYaml . | nindent 4 }}
7+
{{- end }}
58
labels:
69
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
710
app.kubernetes.io/name: "{{ template "k8s-image-availability-exporter.fullname" . }}"
@@ -21,6 +24,9 @@ spec:
2124
app: {{ template "k8s-image-availability-exporter.fullname" . }}
2225
template:
2326
metadata:
27+
{{- with .Values.podAnnotations }}
28+
annotations: {{- toYaml . | nindent 8 }}
29+
{{- end }}
2430
labels:
2531
app: {{ template "k8s-image-availability-exporter.fullname" . }}
2632
spec:

charts/k8s-image-availability-exporter/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ k8sImageAvailabilityExporter:
1313
# -- Setting this to false will prevent k8s-iae having unconstrained cluster-wide secret access
1414
useSecretsForPrivateRepositories: true
1515

16+
# -- additional annotations for deployment
17+
annotations: {}
18+
19+
# -- additional annotations added to the pod
20+
podAnnotations: {}
21+
1622
# -- Number of replicas (pods) to launch.
1723
replicaCount: 1
1824

0 commit comments

Comments
 (0)