I am using helm template library and somehow I am in a condition where my env.yaml file doe snot have any key for pod annotations and helm is setting annotation : null
. Offcourse this is intended behavior.
my questions is will there be unintended behavior or error if I set annotation as null instead of setting as {}.
_deployment.yaml
{{- define "library-chart.deployment" -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "library-chart.fullname" . }}
annotations:
{{- toYaml .Values.podAnnotations | nindent 4 }}
creationTimestamp: null
labels:
{{- include "library-chart.labels" . | nindent 4 }}
Helm diff
+ apiVersion: apps/v1
+ kind: Deployment
+ metadata:
+ name: xxxx
+ annotations:
+ null
...