Include annotations in templating.

for example, If I have istio enabled in a namespace, and I want to deploy reloader in that, It doesn't make sense to include envoy there. So there should be an option to add `sidecar.istio.io/inject: "false"` annotation.
This commit is contained in:
Rajesh Rajendran
2019-12-31 10:52:19 +05:30
committed by rjshrjndrn
parent ded923b12a
commit 68d0349793
3 changed files with 8 additions and 0 deletions
@@ -26,6 +26,10 @@ spec:
{{- end }}
template:
metadata:
{{- if .Values.reloader.deployment.pod.annotations }}
annotations:
{{ toYaml .Values.reloader.deployment.pod.annotations | indent 8 }}
{{- end }}
labels:
{{ include "reloader-labels.chart" . | indent 8 }}
{{- if .Values.reloader.deployment.labels }}
@@ -67,6 +67,8 @@ reloader:
# cpu: "10m"
# memory: "128Mi"
resources: {}
pod:
annotations: {}
rbac:
enabled: true
@@ -67,6 +67,8 @@ reloader:
# cpu: "10m"
# memory: "128Mi"
resources: {}
pod:
annotations: {}
rbac:
enabled: true