-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f013c7
commit d68c387
Showing
14 changed files
with
625 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
grafana-organizations-operator | ||
env | ||
.idea/ | ||
control.kubeconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
if [ ! -e control.kubeconfig ]; then | ||
echo "1. Install kubelogin from https://github.com/int128/kubelogin (you must rename the 'kubelogin' binary to 'kubectl-oidc_login' and copy it e.g. to '/usr/local/bin/')" | ||
echo "2. Visit https://portal.appuio.cloud/kubeconfig and put the displayed kubeconfig into control.kubeconfig" | ||
echo "3. Re-run this command" | ||
echo "4. Remove the control.kubeconfig file" | ||
exit 1 | ||
fi | ||
echo -n "" > env | ||
echo "export GRAFANA_URL=https://operator-dev-grafana.apps.cloudscale-lpg-2.appuio.cloud" >> env | ||
echo "export GRAFANA_USERNAME=admin" >> env | ||
echo -n "export GRAFANA_PASSWORD=" >> env | ||
kubectl --as cluster-admin -n vshn-grafana-organizations-operator-dev get secret grafana-env -ojsonpath='{.data.GF_SECURITY_ADMIN_PASSWORD}' | base64 -d >> env | ||
echo "" >> env | ||
echo "export CONTROL_API_URL=https://api.appuio.cloud" >> env | ||
echo -n "export CONTROL_API_TOKEN=" >> env | ||
kubectl --kubeconfig control.kubeconfig get secret grafana-organizations-operator -ojsonpath='{.data.token}' | base64 -d >> env | ||
echo "" >> env | ||
echo "export CONTROL_API_ADMIN_ORG=vshn" >> env | ||
echo "done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.