clank-bootstrapper/clusterapi/load-secret.sh

12 lines
239 B
Bash
Raw Permalink Normal View History

2022-12-10 22:08:07 +01:00
#!/bin/bash
set -e
. variables.sh
echo "loading HCLOUD_TOKEN"
kubectl create secret generic hetzner --from-literal=hcloud=$HCLOUD_TOKEN
kubectl patch secret hetzner -p '{"metadata":{"labels":{"clusterctl.cluster.x-k8s.io/move":""}}}'