Created
October 15, 2021 16:38
-
-
Save joakimhew/12cfeedaf608f6918b20a1384df12cd9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
set -euo pipefail | |
for kind in daemonSet clusterRole clusterRoleBinding serviceAccount; do | |
echo "setting annotations and labels on $kind/aws-node" | |
kubectl -n kube-system annotate --overwrite $kind aws-node meta.helm.sh/release-name=aws-vpc-cni | |
kubectl -n kube-system annotate --overwrite $kind aws-node meta.helm.sh/release-namespace=kube-system | |
kubectl -n kube-system label --overwrite $kind aws-node app.kubernetes.io/managed-by=Helm | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment