Skip to content

Commit 036b5b6

Browse files
author
Jason Schmidt
authored
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 25eee5b.
1 parent 1b76f7b commit 036b5b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/start_kube.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ fi
266266
# Admin password for grafana (see note in __main__.py in prometheus project as to why not encrypted)
267267
# This is for the deployment that is setup as part of the the prometheus operator driven prometheus-kube-stack.
268268
#
269-
if pulumi config get prometheus:adminpass -C ${script_dir}/../pulumi/python/config >/dev/null 2>&1; then
269+
if pulumi config get prometheus:adminpass -C "${script_dir}"/../pulumi/python/kubernetes/secrets >/dev/null 2>&1; then
270270
echo "Existing password found for grafana admin user"
271271
else
272272
echo "Create a password for the grafana admin user; this password will be used to access the Grafana dashboard"
273-
echo "This should be an alphanumeric string without any shell special characters; it is presented in plain text"
274-
echo "due to current limitations with Pulumi secrets. You will need this password to access the Grafana dashboard."
275-
pulumi config set prometheus:adminpass -C ${script_dir}/../pulumi/python/config
273+
echo "This should be an alphanumeric string without any shell special characters. You will need this password to"
274+
echo "access the Grafana dashboard."
275+
pulumi config set prometheus:adminpass --secret -C "${script_dir}"/../pulumi/python/kubernetes/secrets
276276
fi
277277

278278
#

0 commit comments

Comments
 (0)