Skip to content

Commit

Permalink
make betav1 kubeadm featuregates conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Mar 2, 2020
1 parent 585513e commit 216a566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cluster/internal/kubeadm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,13 @@ controlPlaneEndpoint: "{{ .ControlPlaneEndpoint }}"
# to the cluster after rewriting the kubeconfig to point to localhost
apiServer:
certSANs: [localhost, "{{.APIServerAddress}}"]
{{ if .FeatureGates -}}
extraArgs:
"feature-gates": "{{ .FeatureGatesString }}"
{{- end}}
controllerManager:
extraArgs:
{{ if .FeatureGates -}}
extraArgs:
"feature-gates": "{{ .FeatureGatesString }}"
{{- end}}
enable-hostpath-provisioner: "true"
Expand Down

0 comments on commit 216a566

Please sign in to comment.