Skip to content

Commit

Permalink
kube-addon-manager kubeconfig should be created in configure-helper.s…
Browse files Browse the repository at this point in the history
…h even if it is deployed thought CRP.

Change-Id: If68eb98270516f4b549817636eb3c15d11d53ac8
  • Loading branch information
vinayakankugoyal authored and kl52752 committed Dec 23, 2022
1 parent 59ad0af commit 526c330
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gke/cluster/gce/gci/configure-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 526c330

Please sign in to comment.