Files
holos/docs/provisioner/init-seed
Jeff McCune 0771bd6b6c Configure namespaces in the provisioner cluster
The provisioner cluster is a worker-less autopilot cluster that provides
secrets to other clusters in the platform.  The `eso-creds-refresher`
Job in the holos-system namespace of each other cluster refreshes
service account tokens for SecretStores.

This patch adds the IAM structure for the Job implemented by Namespace,
ServiceAccount, Role, and RoleBinding api objects.
2024-02-19 21:37:13 -08:00

11 lines
289 B
Bash
Executable File

#! /bin/bash
#
set -euo pipefail
export PROJECT_ID="$(gcloud config get-value project)"
export PROJECT_NUMBER="$(gcloud projects describe $PROJECT_ID --format='value(projectNumber)')"
envsubst < rolebinding.template.yaml > rolebinding.yaml
echo "Apply rolebinding.yaml to seed cluster"