From 526c3307087b810792a233005636f03b4b7fe352 Mon Sep 17 00:00:00 2001 From: vinayak goyal Date: Fri, 23 Jul 2021 23:21:27 +0000 Subject: [PATCH] kube-addon-manager kubeconfig should be created in configure-helper.sh even if it is deployed thought CRP. Change-Id: If68eb98270516f4b549817636eb3c15d11d53ac8 --- gke/cluster/gce/gci/configure-helper.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gke/cluster/gce/gci/configure-helper.sh b/gke/cluster/gce/gci/configure-helper.sh index 01f9f3c62bbbe..1608373a52f1f 100644 --- a/gke/cluster/gce/gci/configure-helper.sh +++ b/gke/cluster/gce/gci/configure-helper.sh @@ -2884,11 +2884,12 @@ EOF copy-manifests "${src_dir}/gce-extras/in-place" "${dst_dir}/gce-extras/in-place" fi + create-kubeconfig "addon-manager" "${ADDON_MANAGER_TOKEN}" + if [[ "${KUBE_ADDON_MANAGER_CRP:-false}" == "true" ]]; then echo "kube-addon-manager is configured to not be deployed through kube-up." return fi - create-kubeconfig "addon-manager" "${ADDON_MANAGER_TOKEN}" # User and group should never contain characters that need to be quoted # shellcheck disable=SC2086 prepare-log-file /var/log/kube-addon-manager.log ${KUBE_ADDON_MANAGER_RUNASUSER:-2002}