Skip to content

Commit dc5c201

Browse files
authored
Merge pull request #15 from bfbachmann/fix-cluster-template
Fix localClusterAuthEndpoint in cluster.yaml
2 parents 19e4b98 + 1388768 commit dc5c201

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

charts/templates/cluster.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ spec:
1818
{{- if .Values.kubernetesVersion }}
1919
kubernetesVersion: {{ .Values.kubernetesVersion }}
2020
{{- end }}
21+
{{- if .Values.rke.localClusterAuthEndpoint.enabled }}
22+
localClusterAuthEndpoint:
23+
enabled: {{ .Values.rke.localClusterAuthEndpoint.enabled }}
24+
fqdn: {{ .Values.rke.localClusterAuthEndpoint.fqdn }}
25+
caCerts: {{ .Values.rke.localClusterAuthEndpoint.caCerts }}
26+
{{- end }}
2127
# enable network policy
2228
enableNetworkPolicy: true
2329
# specify rancher helm chart values deployed into downstream cluster
@@ -164,12 +170,6 @@ spec:
164170
# cloud-provider-name: ""
165171
# Cloud provider configuration file path
166172
# cloud-provider-config: ""
167-
{{- if .Values.rke.localClusterAuthEndpoint.enabled }}
168-
localClusterAuthEndpoint:
169-
enabled: {{ .Values.rke.localClusterAuthEndpoint.enabled }}
170-
fqdn: {{ .Values.rke.localClusterAuthEndpoint.fqdn }}
171-
caCerts: {{ .Values.rke.localClusterAuthEndpoint.caCerts }}
172-
{{- end }}
173173
upgradeStrategy:
174174
controlPlaneDrainOptions:
175175
enabled: false

0 commit comments

Comments
 (0)