Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: adjust where grafana password is stored for kubeconfig deploys #206

Merged
merged 3 commits into from
Nov 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bin/start_kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand Down