Skip to content

Commit

Permalink
add annotations + podAnnotations
Browse files Browse the repository at this point in the history
  • Loading branch information
b17k0 committed Jul 22, 2024
1 parent 2a9f59d commit 310ea94
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}"
Expand All @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions charts/k8s-image-availability-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 310ea94

Please sign in to comment.