diff --git a/charts/k8s-image-availability-exporter/templates/deployment.yaml b/charts/k8s-image-availability-exporter/templates/deployment.yaml index d394411..140426f 100644 --- a/charts/k8s-image-availability-exporter/templates/deployment.yaml +++ b/charts/k8s-image-availability-exporter/templates/deployment.yaml @@ -2,6 +2,9 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "k8s-image-availability-exporter.fullname" . }} + {{- with .Values.annotations }} + annotations: {{- toYaml . | nindent 4 }} + {{- end }} labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "k8s-image-availability-exporter.fullname" . }}" @@ -21,6 +24,9 @@ spec: app: {{ template "k8s-image-availability-exporter.fullname" . }} template: metadata: + {{- with .Values.podAnnotations }} + annotations: {{- toYaml . | nindent 8 }} + {{- end }} labels: app: {{ template "k8s-image-availability-exporter.fullname" . }} spec: diff --git a/charts/k8s-image-availability-exporter/values.yaml b/charts/k8s-image-availability-exporter/values.yaml index ff660b7..070f9dc 100644 --- a/charts/k8s-image-availability-exporter/values.yaml +++ b/charts/k8s-image-availability-exporter/values.yaml @@ -13,6 +13,12 @@ k8sImageAvailabilityExporter: # -- Setting this to false will prevent k8s-iae having unconstrained cluster-wide secret access useSecretsForPrivateRepositories: true +# -- additional annotations for deployment +annotations: {} + +# -- additional annotations added to the pod +podAnnotations: {} + # -- Number of replicas (pods) to launch. replicaCount: 1