Skip to content

Commit

Permalink
issue #192 Invalid YAML when setting controller.hostNetwork=true
Browse files Browse the repository at this point in the history
  • Loading branch information
senthilrch committed Mar 5, 2023
1 parent 9259975 commit 8cfb5cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ spec:
labels:
{{- include "kubefledged.selectorLabels" . | nindent 8 }}-controller
spec:
{{- if .Values.controller.hostNetwork -}}
hostNetwork: true
{{ if .Values.controller.hostNetwork -}}
{{ indent 2 "hostNetwork: true" }}
{{- end }}
{{- if .Values.controller.priorityClassName -}}
priorityClassName: {{ .Values.controller.priorityClassName }}
{{ if .Values.controller.priorityClassName -}}
{{ indent 2 (printf "priorityClassName: %s" .Values.controller.priorityClassName) }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ spec:
annotations:
enforceRestartHackTimestamp: {{ now }}
spec:
{{- if .Values.webhookServer.hostNetwork -}}
hostNetwork: true
{{ if .Values.webhookServer.hostNetwork -}}
{{ indent 2 "hostNetwork: true" }}
{{- end }}
{{- if .Values.webhookServer.priorityClassName -}}
priorityClassName: {{ .Values.webhookServer.priorityClassName }}
{{ if .Values.webhookServer.priorityClassName -}}
{{ indent 2 (printf "priorityClassName: %s" .Values.webhookServer.priorityClassName) }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down

0 comments on commit 8cfb5cf

Please sign in to comment.