Skip to content

Commit

Permalink
fix nindent
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Dec 6, 2021
1 parent 1878a25 commit f585af8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
32 changes: 16 additions & 16 deletions templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2auth:{{ tpl (.Values.st2auth.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
envFrom:
- secretRef:
Expand All @@ -79,7 +79,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2auth:{{ tpl (.Values.st2auth.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
ports:
- containerPort: 9100
Expand Down Expand Up @@ -201,7 +201,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2api:{{ tpl (.Values.st2api.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
ports:
- containerPort: 9101
Expand Down Expand Up @@ -330,7 +330,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2stream:{{ tpl (.Values.st2stream.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
ports:
- containerPort: 9102
Expand Down Expand Up @@ -433,7 +433,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2web:{{ tpl (.Values.st2web.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
ports:
- containerPort: {{ eq (get .Values.st2web.env "ST2WEB_HTTPS" | toString) "1" | ternary 443 80 }}
Expand Down Expand Up @@ -582,7 +582,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2rulesengine:{{ tpl (.Values.st2rulesengine.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
# TODO: Add liveness/readiness probes (#3)
#livenessProbe:
Expand Down Expand Up @@ -702,7 +702,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2timersengine:{{ tpl (.Values.st2timersengine.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
# TODO: Add liveness/readiness probes (#3)
#livenessProbe:
Expand Down Expand Up @@ -809,7 +809,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2workflowengine:{{ tpl (.Values.st2workflowengine.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
# TODO: Add liveness/readiness probes (#3)
#livenessProbe:
Expand Down Expand Up @@ -936,7 +936,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2scheduler:{{ tpl (.Values.st2scheduler.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
# TODO: Add liveness/readiness probes (#3)
#livenessProbe:
Expand Down Expand Up @@ -1055,7 +1055,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2notifier:{{ tpl (.Values.st2notifier.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
# TODO: Add liveness/readiness probes (#3)
#livenessProbe:
Expand Down Expand Up @@ -1188,7 +1188,7 @@ spec:
image: '{{ template "imageRepository" $ }}/st2sensorcontainer:{{ tpl ($sensor.image.tag | default $.Values.image.tag) $ }}'
imagePullPolicy: {{ $.Values.image.pullPolicy }}
{{- with default $.Values.securityContext $sensor.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
{{- with $sensor.readinessProbe }}
# Probe to check if app is running. Failure will lead to a pod restart.
Expand Down Expand Up @@ -1350,7 +1350,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2actionrunner.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with default .Values.securityContext .Values.st2actionrunner.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
# TODO: Add liveness/readiness probes (#3)
#livenessProbe:
Expand Down Expand Up @@ -1495,7 +1495,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2garbagecollector:{{ tpl (.Values.st2garbagecollector.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
# TODO: Add liveness/readiness probes (#3)
#livenessProbe:
Expand Down Expand Up @@ -1608,7 +1608,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
envFrom:
- configMapRef:
Expand All @@ -1635,7 +1635,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with default .Values.securityContext .Values.st2actionrunner.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
env:
- name: ST2CLIENT
Expand Down Expand Up @@ -1798,7 +1798,7 @@ spec:
image: '{{ .Values.st2chatops.image.repository | default "stackstorm" }}/{{ .Values.st2chatops.image.name | default "st2chatops" }}:{{ tpl (.Values.st2chatops.image.tag | default .Values.image.tag) . }}'
imagePullPolicy: {{ .Values.st2chatops.image.pullPolicy | default .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
envFrom:
- configMapRef:
Expand Down
16 changes: 8 additions & 8 deletions templates/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.jobs.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
command:
- st2-apply-rbac-definitions
Expand Down Expand Up @@ -154,7 +154,7 @@ spec:
- name: wait-for-api
image: busybox:1.28
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
command:
- 'sh'
Expand All @@ -168,7 +168,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.jobs.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
envFrom:
- configMapRef:
Expand All @@ -195,7 +195,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.jobs.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
command:
- st2
Expand Down Expand Up @@ -298,7 +298,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.jobs.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
envFrom:
- configMapRef:
Expand All @@ -325,7 +325,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.jobs.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
command:
- st2
Expand Down Expand Up @@ -435,7 +435,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.jobs.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
command: {{- toYaml $.Values.jobs.preRegisterContentCommand | nindent 8 }}
volumeMounts:
Expand All @@ -454,7 +454,7 @@ spec:
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.jobs.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
command:
- st2-register-content
Expand Down

0 comments on commit f585af8

Please sign in to comment.