You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: feature/kubernetes/install-azure.sh
+7-14Lines changed: 7 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -49,22 +49,15 @@ EOF
49
49
50
50
execHandle "Fetching k8s credentials for ${CLUSTER}" az aks get-credentials --resource-group "${K8S_RESOURCEGROUP}" --name "${K8S_CLUSTER}"${ADMIN_PARAMETER}"${K8S_SUBSCRIPTION[@]}"
51
51
52
-
# az aks get-credentials since kubernetes version 1.24 puts directly the kubelogin-way into kube config, hence the check here:
53
-
if [ "$(az aks show -n "${K8S_CLUSTER}" -g "${K8S_RESOURCEGROUP}""${K8S_SUBSCRIPTION[@]}"| jq -r .currentKubernetesVersion | cut -d"." -f2)"-le 23 ];then
54
-
AZ_DO_KUBELOGIN_CONVERT=true
55
-
fi
56
-
57
52
done
58
53
chmod +x ~/bin/k8s-relogin
59
54
60
-
if${AZ_DO_KUBELOGIN_CONVERT};then
61
-
args=()
62
-
if${AZ_USE_ARM_SPI:-false};
63
-
then
64
-
args+=("-l""spn")
65
-
fi
66
-
67
-
execHandle "Converting credentials to kubelogin" kubelogin convert-kubeconfig "${args[@]}"
0 commit comments