Skip to content

Commit

Permalink
Fix indentation issue
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Sekili <[email protected]>
  • Loading branch information
buraksekili committed Jul 7, 2023
1 parent 3f8b8b1 commit 1f516cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions hack/helm/pre_helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ const nodeSelectorTPL = `{{- if .Values.nodeSelector }}

const extraVolume = `- name: CONTROLLER_MANAGER_EXTRA_VOLUME`

const extraVolumeTPL = ` {{ if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | nindent 6 }}
const extraVolumeTPL = `{{ if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | nindent 6 }}
{{ end }}`

const extraVolumeMounts = `- mountPath: CONTROLLER_MANAGER_EXTRA_VOLUMEMOUNTS`

const extraVolumeMountsTPL = ` {{ if .Values.extraVolumeMounts }}
{{ toYaml .Values.extraVolumeMounts | nindent 8 }}
const extraVolumeMountsTPL = `{{ if .Values.extraVolumeMounts }}
{{ toYaml .Values.extraVolumeMounts | nindent 8}}
{{ end }}`
8 changes: 4 additions & 4 deletions helm/templates/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@ spec:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert
readOnly: true
{{ if .Values.extraVolumeMounts }}
{{ toYaml .Values.extraVolumeMounts | nindent 8 }}
{{ if .Values.extraVolumeMounts }}
{{ toYaml .Values.extraVolumeMounts | nindent 8}}
{{ end }}
- mountPath: /controller_manager_config.yaml
name: manager-config
Expand Down Expand Up @@ -494,8 +494,8 @@ spec:
secret:
defaultMode: 420
secretName: webhook-server-cert
{{ if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | nindent 6 }}
{{ if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | nindent 6 }}
{{ end }}
- configMap:
name: {{ include "tyk-operator-helm.fullname" . }}-manager-config
Expand Down

0 comments on commit 1f516cc

Please sign in to comment.