From 1388768b934743b1fbd1986adcd456a8af7fa9a3 Mon Sep 17 00:00:00 2001 From: Bruno Bachmann Date: Fri, 21 Apr 2023 16:54:15 -0700 Subject: [PATCH] Fix localClusterAuthEndpoint in cluster.yaml --- charts/templates/cluster.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/templates/cluster.yaml b/charts/templates/cluster.yaml index ff61276..55d069f 100644 --- a/charts/templates/cluster.yaml +++ b/charts/templates/cluster.yaml @@ -18,6 +18,12 @@ spec: {{- if .Values.kubernetesVersion }} kubernetesVersion: {{ .Values.kubernetesVersion }} {{- end }} + {{- if .Values.rke.localClusterAuthEndpoint.enabled }} + localClusterAuthEndpoint: + enabled: {{ .Values.rke.localClusterAuthEndpoint.enabled }} + fqdn: {{ .Values.rke.localClusterAuthEndpoint.fqdn }} + caCerts: {{ .Values.rke.localClusterAuthEndpoint.caCerts }} + {{- end }} # enable network policy enableNetworkPolicy: true # specify rancher helm chart values deployed into downstream cluster @@ -164,12 +170,6 @@ spec: # cloud-provider-name: "" # Cloud provider configuration file path # cloud-provider-config: "" - {{- if .Values.rke.localClusterAuthEndpoint.enabled }} - localClusterAuthEndpoint: - enabled: {{ .Values.rke.localClusterAuthEndpoint.enabled }} - fqdn: {{ .Values.rke.localClusterAuthEndpoint.fqdn }} - caCerts: {{ .Values.rke.localClusterAuthEndpoint.caCerts }} - {{- end }} upgradeStrategy: controlPlaneDrainOptions: enabled: false