Skip to content

Commit 17d38c2

Browse files
Simon Emmsmrsimonemms
Simon Emms
authored andcommitted
[installer]: delete old kots serviceaccount/clusterrolebinding
1 parent 452844e commit 17d38c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install/installer/scripts/kots-install.sh

+5
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ EOF
111111
return 0
112112
fi
113113

114+
# Delete old serviceaccount/clusterrolebinding
115+
echo "Deleting pre-2022.9.0 serviceaccount/clusterrolebinding"
116+
kubectl delete serviceaccounts -n "${NAMESPACE}" installer || true
117+
kubectl delete clusterrolebindings -n "${NAMESPACE}" installer || true
118+
114119
# Combine the pull secrets
115120
echo "${LOCAL_REGISTRY_IMAGE_PULL_DOCKER_CONFIG_JSON}" > /tmp/kotsregistry.json
116121
if [ "${REGISTRY_INCLUSTER_ENABLED}" = "1" ]; then

0 commit comments

Comments
 (0)