File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 96
96
value : " {{ .Values.linux.kubelet }}"
97
97
- name : MIGRATE_K8S_REPO
98
98
value : " {{ .Values.node.azurefileProxy.migrateK8sRepo }}"
99
+ - name : SETUP_MI_AUTH
100
+ value : " {{ .Values.node.azurefileProxy.setUpMIAuth }}"
99
101
volumeMounts :
100
102
- name : host-usr
101
103
mountPath : /host/usr
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ node:
128
128
enabled : true
129
129
installAznfsMount : true
130
130
migrateK8sRepo : false
131
+ setUpMIAuth : true
131
132
132
133
snapshot :
133
134
enabled : false
Original file line number Diff line number Diff line change 58
58
value : " true"
59
59
- name : INSTALL_AZNFS_MOUNT
60
60
value : " true"
61
+ - name : SETUP_MI_AUTH
62
+ value : " true"
61
63
volumeMounts :
62
64
- name : host-usr
63
65
mountPath : /host/usr
Original file line number Diff line number Diff line change 17
17
set -xe
18
18
19
19
MIGRATE_K8S_REPO=${MIGRATE_K8S_REPO:- false}
20
+ SETUP_MI_AUTH=${SETUP_MI_AUTH:- true}
20
21
21
22
KUBELET_PATH=${KUBELET_PATH:-/ var/ lib/ kubelet}
22
23
if [ " $KUBELET_PATH " != " /var/lib/kubelet" ]; then
27
28
28
29
HOST_CMD=" nsenter --mount=/proc/1/ns/mnt"
29
30
30
- echo " set up /etc/krb5.conf on host"
31
- printf ' [libdefaults]\ndefault_ccache_name = FILE:/var/lib/kubelet/kerberos/krb5cc_%s\n' " %{uid}" > /host/etc/krb5.conf
31
+ if [ " $SETUP_MI_AUTH " = " true" ]; then
32
+ echo " set up /etc/krb5.conf on host"
33
+ printf ' [libdefaults]\ndefault_ccache_name = FILE:/var/lib/kubelet/kerberos/krb5cc_%s\n' " %{uid}" > /host/etc/krb5.conf
32
34
33
- mkdir -p /var/lib/kubelet/kerberos
35
+ mkdir -p /var/lib/kubelet/kerberos
34
36
35
- echo " set up /etc/azfilesauth/config.yaml on host"
36
- mkdir -p /host/etc/azfilesauth
37
- printf ' USER_UID: 0\nKRB5_CC_NAME: /var/lib/kubelet/kerberos/krb5cc_0\n' > /host/etc/azfilesauth/config.yaml
37
+ echo " set up /etc/azfilesauth/config.yaml on host"
38
+ mkdir -p /host/etc/azfilesauth
39
+ printf ' USER_UID: 0\nKRB5_CC_NAME: /var/lib/kubelet/kerberos/krb5cc_0\n' > /host/etc/azfilesauth/config.yaml
40
+ fi
38
41
39
42
DISTRIBUTION=$( $HOST_CMD cat /etc/os-release | grep ^ID= | cut -d' =' -f2 | tr -d ' "' )
40
43
ARCH=$( $HOST_CMD uname -m)
You can’t perform that action at this time.
0 commit comments