Skip to content

Commit

Permalink
add capability to set annotations on pod and deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmalott committed Jan 10, 2024
1 parent 82e563a commit 3b1533f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deploy/charts/istio-csr/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{ include "cert-manager-istio-csr.labels" . | indent 4 }}
{{- with .Values.deploymentAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand All @@ -14,6 +18,10 @@ spec:
metadata:
labels:
app: {{ include "cert-manager-istio-csr.name" . }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
6 changes: 6 additions & 0 deletions deploy/charts/istio-csr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ service:
# -- Service port to expose istio-csr gRPC service.
port: 443

# -- Optional annotations for the deployment metadata
deploymentAnnotations: []

# -- Optional annotations for the pod metadata
podAnnotations: []

app:
# -- Verbosity of istio-csr logging.
logLevel: 1 # 1-5
Expand Down

0 comments on commit 3b1533f

Please sign in to comment.