Skip to content

Commit

Permalink
fix(helm): add nindent in objectSelector (#3071)
Browse files Browse the repository at this point in the history
Signed-off-by: leewoobin789 <leewoobin789@gmail.com>
Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com>
  • Loading branch information
leewoobin789 and ritazh committed Oct 23, 2023
1 parent 6b78b0b commit f58c5a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/build/helmify/replacements.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var replacements = map[string]string{
{{- end }}
{{- end }}`,

"HELMSUBST_MUTATING_WEBHOOK_OBJECT_SELECTOR": `{{ toYaml .Values.mutatingWebhookObjectSelector }}`,
"HELMSUBST_MUTATING_WEBHOOK_OBJECT_SELECTOR": `{{ toYaml .Values.mutatingWebhookObjectSelector | nindent 4 }}`,

"HELMSUBST_MUTATING_WEBHOOK_TIMEOUT": `{{ .Values.mutatingWebhookTimeoutSeconds }}`,
"- HELMSUBST_MUTATING_WEBHOOK_OPERATION_RULES": `{{- if .Values.mutatingWebhookCustomRules }}
Expand Down Expand Up @@ -167,7 +167,7 @@ var replacements = map[string]string{
{{- end }}
{{- end }}`,

"HELMSUBST_VALIDATING_WEBHOOK_OBJECT_SELECTOR": `{{ toYaml .Values.validatingWebhookObjectSelector }}`,
"HELMSUBST_VALIDATING_WEBHOOK_OBJECT_SELECTOR": `{{ toYaml .Values.validatingWebhookObjectSelector | nindent 4 }}`,

"HELMSUBST_VALIDATING_WEBHOOK_CHECK_IGNORE_FAILURE_POLICY": `{{ .Values.validatingWebhookCheckIgnoreFailurePolicy }}`,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ webhooks:
- {{ . }}
{{- end }}
{{- end }}
objectSelector: {{ toYaml .Values.mutatingWebhookObjectSelector }}
objectSelector: {{ toYaml .Values.mutatingWebhookObjectSelector | nindent 4 }}
reinvocationPolicy: {{ .Values.mutatingWebhookReinvocationPolicy }}
rules:
{{- if .Values.mutatingWebhookCustomRules }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ webhooks:
- {{ . }}
{{- end }}
{{- end }}
objectSelector: {{ toYaml .Values.validatingWebhookObjectSelector }}
objectSelector: {{ toYaml .Values.validatingWebhookObjectSelector | nindent 4 }}
rules:
{{- if .Values.validatingWebhookCustomRules }}
{{- toYaml .Values.validatingWebhookCustomRules | nindent 2 }}
Expand Down

0 comments on commit f58c5a8

Please sign in to comment.