blob: e2e5da8c4b97b1bfb85a7e13f0ce5cc222f629b7 [file] [log] [blame]
# Downloads the secret grafana.ini file for editing.
# Once you are done editing the file, the config will be uploaded.
source ../kube/
source ../bash/
cd /tmp/ramdisk
kubectl get secret ${SECRET_NAME} -o json | jq -r '.data["grafana.ini"]' | base64 -d > grafana.ini
echo "Downloaded the login secrets to /tmp/ramdisk."
echo "Edit /tmp/ramdisk/grafana.ini."
echo ""
read -r -p "When you are done editing press enter to upload the updated grafana.ini file..." key
kubectl create secret generic ${SECRET_NAME} --from-file=grafana.ini --dry-run=client -o yaml | kubectl apply -f -
cd -
echo "Now restart the grafana-internal-0 pod so it picks up the config change."