Last active
May 1, 2023 03:10
-
-
Save johnmanjiro13/82e8b8cc349f853a95e7bec80de7e190 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# service account | |
kubectl label sa istio-reader-service-account -nistio-system app.kubernetes.io/managed-by=Helm | |
kubectl annotate sa istio-reader-service-account -nistio-system meta.helm.sh/release-name=istio-base meta.helm.sh/release-namespace=istio-system | |
kubectl label sa istiod-service-account -nistio-system app.kubernetes.io/managed-by=Helm | |
kubectl annotate sa istiod-service-account -nistio-system meta.helm.sh/release-name=istio-base meta.helm.sh/release-namespace=istio-system | |
# cluster role | |
kubectl label clusterrole istiod-istio-system app.kubernetes.io/managed-by=Helm | |
kubectl annotate clusterrole istiod-istio-system meta.helm.sh/release-name=istio-base meta.helm.sh/release-namespace=istio-system | |
kubectl label clusterrole istio-reader-istio-system app.kubernetes.io/managed-by=Helm | |
kubectl annotate clusterrole istio-reader-istio-system meta.helm.sh/release-name=istio-base meta.helm.sh/release-namespace=istio-system | |
# cluster role binding | |
kubectl label clusterrolebinding istio-reader-istio-system app.kubernetes.io/managed-by=Helm | |
kubectl annotate clusterrolebinding istio-reader-istio-system meta.helm.sh/release-name=istio-base meta.helm.sh/release-namespace=istio-system | |
kubectl label clusterrolebinding istiod-istio-system app.kubernetes.io/managed-by=Helm | |
kubectl annotate clusterrolebinding istiod-istio-system meta.helm.sh/release-name=istio-base meta.helm.sh/release-namespace=istio-system | |
# role | |
kubectl label role istiod-istio-system -nistio-system app.kubernetes.io/managed-by=Helm | |
kubectl annotate role istiod-istio-system -nistio-system meta.helm.sh/release-name=istio-base meta.helm.sh/release-namespace=istio-system | |
# role binding | |
kubectl label rolebinding istiod-istio-system -nistio-system app.kubernetes.io/managed-by=Helm | |
kubectl annotate rolebinding istiod-istio-system -nistio-system meta.helm.sh/release-name=istio-base meta.helm.sh/release-namespace=istio-system |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment