openshift-bootstrap-update.j2 419 B

1234567
  1. #!/bin/bash
  2. set -euo pipefail
  3. "{{ openshift_client_binary }}" serviceaccounts create-kubeconfig -n openshift-infra node-bootstrapper > /root/bootstrap.kubeconfig
  4. gcloud compute project-info --project '{{ openshift_gcp_project }}' add-metadata --metadata-from-file '{{ openshift_gcp_prefix + openshift_gcp_clusterid | default("default") }}-bootstrap-config=/root/bootstrap.kubeconfig'
  5. rm -f /root/bootstrap.kubeconfig