Merge "Make userData optional in cluster chart"
authorKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Mon, 13 Dec 2021 22:18:47 +0000 (22:18 +0000)
committerGerrit Code Review <gerrit@akraino.org>
Mon, 13 Dec 2021 22:18:47 +0000 (22:18 +0000)
deploy/cluster/templates/kubeadmconfigtemplate.yaml
deploy/cluster/templates/kubeadmcontrolplane.yaml

index 0172dc7..33afc28 100644 (file)
@@ -47,6 +47,7 @@ spec:
         permissions: '0777'
         content: |
 {{ $.Files.Get "resources/set_kernel_cmdline.sh" | indent 10 }}
+{{- if .Values.userData }}
       users:
       - name: {{ .Values.userData.name }}
         shell: /bin/bash
@@ -59,3 +60,4 @@ spec:
       - name: root
         sshAuthorizedKeys:
         - {{ .Values.userData.sshAuthorizedKey }}
+{{- end }}
index 3342c73..c960733 100644 (file)
@@ -82,6 +82,7 @@ spec:
       permissions: '0777'
       content: |
 {{ $.Files.Get "resources/set_kernel_cmdline.sh" | indent 8 }}
+{{- if .Values.userData }}
     users:
     - name: {{ .Values.userData.name }}
       shell: /bin/bash
@@ -94,6 +95,7 @@ spec:
     - name: root
       sshAuthorizedKeys:
       - {{ .Values.userData.sshAuthorizedKey }}
+{{- end }}
   machineTemplate:
     infrastructureRef:
       apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5