Skip to content

Commit

Permalink
Refactor indent
Browse files Browse the repository at this point in the history
  • Loading branch information
upgle committed Jan 14, 2021
1 parent 865e353 commit d192909
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions helm/openwhisk/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -292,21 +292,21 @@ imagePullSecrets:
{{/* Environment variables required for invoker volumes configuration */}}
{{- define "openwhisk.invoker.volumes" -}}
{{- if eq .Values.invoker.containerFactory.impl "docker" }}
{{ include "openwhisk.docker_volumes" . | indent 6 }}
- name: scripts-dir
configMap:
name: {{ .Release.Name }}-invoker-scripts
{{ include "openwhisk.docker_volumes" . }}
- name: scripts-dir
configMap:
name: {{ .Release.Name }}-invoker-scripts
{{- end }}
{{- end }}

{{/* Environment variables required for invoker volumes configuration */}}
{{- define "openwhisk.invoker.volume_mounts" -}}
{{- if (eq .Values.invoker.containerFactory.impl "docker") }}
{{ include "openwhisk.docker_volume_mounts" . | indent 8 }}
{{ include "openwhisk.docker_volume_mounts" . }}
{{- if .Values.invoker.containerFactory.networkConfig.dns.inheritInvokerConfig }}
- name: scripts-dir
mountPath: "/invoker-scripts/configureDNS.sh"
subPath: "configureDNS.sh"
- name: scripts-dir
mountPath: "/invoker-scripts/configureDNS.sh"
subPath: "configureDNS.sh"
{{- end }}
{{- end }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions helm/openwhisk/templates/controller-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
secretName: {{ .Release.Name }}-jmxremote-secret
# The lean controller requires invoker volumes mounts
{{- if .Values.controller.lean }}
{{ include "openwhisk.invoker.volumes" . }}
{{ include "openwhisk.invoker.volumes" . | indent 6 }}
{{- end }}
{{ include "openwhisk.docker.imagePullSecrets" . | indent 6 }}

Expand Down Expand Up @@ -104,7 +104,7 @@ spec:
mountPath: "/conf/jmxremote.password"
subPath: "jmxremote.password"
{{- if .Values.controller.lean }}
{{ include "openwhisk.invoker.volume_mounts" . }}
{{ include "openwhisk.invoker.volume_mounts" . | indent 8 }}
{{- end }}
livenessProbe:
httpGet:
Expand Down
4 changes: 2 additions & 2 deletions helm/openwhisk/templates/invoker-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
- name: jmxremote-secret
secret:
secretName: {{ .Release.Name }}-jmxremote-secret
{{ include "openwhisk.invoker.volumes" . }}
{{ include "openwhisk.invoker.volumes" . | indent 6 }}

initContainers:
{{- if eq .Values.invoker.containerFactory.impl "docker" }}
Expand Down Expand Up @@ -228,5 +228,5 @@ spec:
- name: jmxremote-secret
mountPath: "/conf/jmxremote.password"
subPath: "jmxremote.password"
{{ include "openwhisk.invoker.volume_mounts" . }}
{{ include "openwhisk.invoker.volume_mounts" . | indent 8 }}
{{- end }}

0 comments on commit d192909

Please sign in to comment.