@@ -19,16 +19,15 @@ apiVersion: apps/v1
1919kind : Deployment 
2020metadata :
2121  name : {{ template "superset.fullname" . }}-celerybeat 
22+   namespace : {{ .Release.Namespace }} 
2223  labels :
2324    app : {{ template "superset.name" . }}-celerybeat 
2425    chart : {{ template "superset.chart" . }} 
2526    release : {{ .Release.Name }} 
2627    heritage : {{ .Release.Service }} 
27- {{- if .Values.supersetCeleryBeat.deploymentAnnotations }} 
28-   annotations :
29-     {{- toYaml .Values.supersetCeleryBeat.deploymentAnnotations | nindent 4 }} 
30- {{- end }} 
31-   namespace : {{ .Release.Namespace }} 
28+   {{- if .Values.supersetCeleryBeat.deploymentAnnotations }} 
29+   annotations : {{- toYaml .Values.supersetCeleryBeat.deploymentAnnotations | nindent 4 }} 
30+   {{- end }} 
3231spec :
3332  #  This must be a singleton
3433  replicas : 1 
@@ -46,31 +45,30 @@ spec:
4645        checksum/extraSecretEnv : {{ .Values.extraSecretEnv | toYaml | sha256sum }} 
4746        checksum/configOverrides : {{ .Values.configOverrides | toYaml | sha256sum }} 
4847        checksum/configOverridesFiles : {{ .Values.configOverridesFiles | toYaml | sha256sum }} 
49-         {{ if .Values.supersetCeleryBeat.forceReload }} 
48+         {{-  if .Values.supersetCeleryBeat.forceReload }} 
5049        #  Optionally force the thing to reload
5150        force-reload : {{ randAlphaNum 5 | quote }} 
52-         {{ end }} 
53-       {{- if .Values.supersetCeleryBeat.podAnnotations }} 
54-         {{- toYaml .Values.supersetCeleryBeat.podAnnotations | nindent 8 }} 
55-       {{- end }} 
51+         {{-  end }} 
52+          {{- if .Values.supersetCeleryBeat.podAnnotations }} 
53+            {{- toYaml .Values.supersetCeleryBeat.podAnnotations | nindent 8 }} 
54+          {{- end }} 
5655      labels :
5756        app : " {{ template " superset.name" . }}-celerybeat" 
5857        release : {{ .Release.Name }} 
59-       {{- if .Values.supersetCeleryBeat.podLabels }} 
60-         {{- toYaml .Values.supersetCeleryBeat.podLabels | nindent 8 }} 
61-       {{- end }} 
58+          {{- if .Values.supersetCeleryBeat.podLabels }} 
59+            {{- toYaml .Values.supersetCeleryBeat.podLabels | nindent 8 }} 
60+          {{- end }} 
6261    spec :
6362      {{- if or (.Values.serviceAccount.create) (.Values.serviceAccountName) }} 
6463      serviceAccountName : {{ template "superset.serviceAccountName" . }} 
6564      {{- end }} 
6665      securityContext :
6766        runAsUser : {{ .Values.runAsUser }} 
68-       {{- if .Values.supersetCeleryBeat.podSecurityContext }} 
69-         {{- toYaml .Values.supersetCeleryBeat.podSecurityContext | nindent 8 }} 
70-       {{- end }} 
67+          {{- if .Values.supersetCeleryBeat.podSecurityContext }} 
68+            {{- toYaml .Values.supersetCeleryBeat.podSecurityContext | nindent 8 }} 
69+          {{- end }} 
7170      {{- if .Values.supersetCeleryBeat.initContainers }} 
72-       initContainers :
73-       {{-  tpl (toYaml .Values.supersetCeleryBeat.initContainers) . | nindent 6 }} 
71+       initContainers : {{-  tpl (toYaml .Values.supersetCeleryBeat.initContainers) . | nindent 6 }} 
7472      {{- end }} 
7573      {{- with .Values.hostAliases }} 
7674      hostAliases : {{- toYaml . | nindent 6 }} 
9189              value : {{ $value | quote }} 
9290            {{- end }} 
9391            {{- if .Values.extraEnvRaw }} 
94-             {{- toYaml .Values.extraEnvRaw | nindent 12 }} 
92+                {{- toYaml .Values.extraEnvRaw | nindent 12 }} 
9593            {{- end }} 
9694          envFrom :
9795            - secretRef :
@@ -109,44 +107,41 @@ spec:
109107              mountPath : {{ .Values.extraConfigMountPath | quote }} 
110108              readOnly : true 
111109            {{- end }} 
112-           {{- with .Values.extraVolumeMounts }} 
113-           {{- tpl (toYaml .) $ | nindent 12 - }} 
114-           {{- end }} 
110+              {{- with .Values.extraVolumeMounts }} 
111+                {{- tpl (toYaml .) $ | nindent 12 }} 
112+              {{- end }} 
115113          resources :
116-           {{- if .Values.supersetCeleryBeat.resources }} 
117-             {{- toYaml .Values.supersetCeleryBeat.resources | nindent 12 }} 
118-           {{- else }} 
119-             {{- toYaml .Values.resources | nindent 12 }} 
120-           {{- end }} 
114+              {{- if .Values.supersetCeleryBeat.resources }} 
115+                {{- toYaml .Values.supersetCeleryBeat.resources | nindent 12 }} 
116+              {{- else }} 
117+                {{- toYaml .Values.resources | nindent 12 }} 
118+              {{- end }} 
121119      {{- with .Values.nodeSelector }} 
122-       nodeSelector :
123-         {{- toYaml . | nindent 8 }} 
120+       nodeSelector : {{- toYaml . | nindent 8 }} 
124121      {{- end }} 
125122      {{- if or .Values.affinity .Values.supersetCeleryBeat.affinity }} 
126123      affinity :
127124        {{- with .Values.affinity }} 
128-         {{- toYaml . | nindent 8 }} 
125+            {{- toYaml . | nindent 8 }} 
129126        {{- end }} 
130127        {{- with .Values.supersetCeleryBeat.affinity }} 
131-         {{- toYaml . | nindent 8 }} 
128+            {{- toYaml . | nindent 8 }} 
132129        {{- end }} 
133130      {{- end }} 
134131      {{- if or .Values.topologySpreadConstraints .Values.supersetCeleryBeat.topologySpreadConstraints }} 
135132      topologySpreadConstraints :
136133        {{- with .Values.topologySpreadConstraints }} 
137-         {{- toYaml . | nindent 8 }} 
134+            {{- toYaml . | nindent 8 }} 
138135        {{- end }} 
139136        {{- with .Values.supersetCeleryBeat.topologySpreadConstraints }} 
140-         {{- toYaml . | nindent 8 }} 
137+            {{- toYaml . | nindent 8 }} 
141138        {{- end }} 
142139      {{- end }} 
143140      {{- with .Values.tolerations }} 
144-       tolerations :
145-         {{- toYaml . | nindent 8 }} 
141+       tolerations : {{- toYaml . | nindent 8 }} 
146142      {{- end }} 
147143      {{- if .Values.imagePullSecrets }} 
148-       imagePullSecrets :
149-         {{- toYaml .Values.imagePullSecrets | nindent 8 }} 
144+       imagePullSecrets : {{- toYaml .Values.imagePullSecrets | nindent 8 }} 
150145      {{- end }} 
151146      volumes :
152147        - name : superset-config 
@@ -157,7 +152,7 @@ spec:
157152          configMap :
158153            name : {{ template "superset.fullname" . }}-extra-config 
159154        {{- end }} 
160-       {{- with .Values.extraVolumes }} 
161-       {{- tpl (toYaml .) $ | nindent 8 -}} 
162-       {{- end }} 
155+          {{- with .Values.extraVolumes }} 
156+            {{- tpl (toYaml .) $ | nindent 8 -}} 
157+          {{- end }} 
163158{{- end -}} 
0 commit comments