From 036b5b6e8c8bcc16e3de76de5146e8bf35cbb6d7 Mon Sep 17 00:00:00 2001 From: Jason Schmidt Date: Tue, 15 Nov 2022 13:44:57 -0700 Subject: [PATCH] fix: adjust where grafana password is stored for kubeconfig deploys (#206) * fix: update where we put/get secrets * chore: bump python versions * Revert "chore: bump python versions" This reverts commit 25eee5b0370871c7b4ce0220bd6cc73013ee21af. --- bin/start_kube.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/start_kube.sh b/bin/start_kube.sh index 37ff417..1d8e69d 100755 --- a/bin/start_kube.sh +++ b/bin/start_kube.sh @@ -266,13 +266,13 @@ fi # Admin password for grafana (see note in __main__.py in prometheus project as to why not encrypted) # This is for the deployment that is setup as part of the the prometheus operator driven prometheus-kube-stack. # -if pulumi config get prometheus:adminpass -C ${script_dir}/../pulumi/python/config >/dev/null 2>&1; then +if pulumi config get prometheus:adminpass -C "${script_dir}"/../pulumi/python/kubernetes/secrets >/dev/null 2>&1; then echo "Existing password found for grafana admin user" else echo "Create a password for the grafana admin user; this password will be used to access the Grafana dashboard" - echo "This should be an alphanumeric string without any shell special characters; it is presented in plain text" - echo "due to current limitations with Pulumi secrets. You will need this password to access the Grafana dashboard." - pulumi config set prometheus:adminpass -C ${script_dir}/../pulumi/python/config + echo "This should be an alphanumeric string without any shell special characters. You will need this password to" + echo "access the Grafana dashboard." + pulumi config set prometheus:adminpass --secret -C "${script_dir}"/../pulumi/python/kubernetes/secrets fi #