Skip to content

Commit

Permalink
fix template whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Mar 3, 2020
1 parent d2332b5 commit 1b64fa9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions pkg/cluster/internal/kubeadm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,25 +308,25 @@ controlPlaneEndpoint: "{{ .ControlPlaneEndpoint }}"
# to the cluster after rewriting the kubeconfig to point to localhost
apiServer:
certSANs: [localhost, "{{.APIServerAddress}}"]
{{ if .FeatureGates -}}
{{ if .FeatureGates }}
extraArgs:
"feature-gates": "{{ .FeatureGatesString }}"
{{- end}}
{{ end}}
controllerManager:
{{ if .FeatureGates -}}
{{ if .FeatureGates }}
extraArgs:
"feature-gates": "{{ .FeatureGatesString }}"
{{- end}}
{{ end}}
enable-hostpath-provisioner: "true"
# configure ipv6 default addresses for IPv6 clusters
{{ if .IPv6 -}}
bind-address: "::"
{{- end }}
scheduler:
extraArgs:
{{ if .FeatureGates -}}
{{ if .FeatureGates }}
"feature-gates": "{{ .FeatureGatesString }}"
{{- end }}
{{ end }}
# configure ipv6 default addresses for IPv6 clusters
{{ if .IPv6 -}}
address: "::"
Expand Down Expand Up @@ -359,7 +359,7 @@ apiVersion: kubeadm.k8s.io/v1beta1
kind: JoinConfiguration
metadata:
name: config
{{ if .ControlPlane -}}
{{ if .ControlPlane -}}
controlPlane:
localAPIEndpoint:
advertiseAddress: "{{ .NodeAddress }}"
Expand Down Expand Up @@ -422,25 +422,25 @@ controlPlaneEndpoint: "{{ .ControlPlaneEndpoint }}"
# to the cluster after rewriting the kubeconfig to point to localhost
apiServer:
certSANs: [localhost, "{{.APIServerAddress}}"]
{{ if .FeatureGates -}}
{{ if .FeatureGates }}
extraArgs:
"feature-gates": "{{ .FeatureGatesString }}"
{{- end }}
{{ end }}
controllerManager:
extraArgs:
{{ if .FeatureGates -}}
{{ if .FeatureGates }}
"feature-gates": "{{ .FeatureGatesString }}"
{{- end }}
{{ end }}
enable-hostpath-provisioner: "true"
# configure ipv6 default addresses for IPv6 clusters
{{ if .IPv6 -}}
bind-address: "::"
{{- end }}
scheduler:
extraArgs:
{{ if .FeatureGates -}}
{{ if .FeatureGates }}
"feature-gates": "{{ .FeatureGatesString }}"
{{- end}}
{{ end }}
# configure ipv6 default addresses for IPv6 clusters
{{ if .IPv6 -}}
address: "::"
Expand Down

0 comments on commit 1b64fa9

Please sign in to comment.