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
#!/usr/bin/env bash | |
# This extracts a Service Account Token from a previously created | |
# ServiceAccount that has sufficient RBAC permissions to deploy | |
# a Control Agent. The token is then set in a kubeconfig file | |
# a non-admin user can use to deploy a Control Agent. cluster-admin | |
# role is required to execute this script | |
# This script is based entirely on innovia/kubernetes_add_service_account_kubeconfig.sh | |
# located at https://gist.github.com/innovia/fbba8259042f71db98ea8d4ad19bd708 |