clank-bootstrapper/clusterapi/load-secret.sh
2022-12-10 22:08:07 +01:00

12 lines
239 B
Bash
Executable File

#!/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":""}}}'