Skip to content

Commit daf129e

Browse files
authored
Update get credentials script (#428)
## πŸ“ Description The place of storing credentials was changed in this PR #338 ## βœ… Checklist - [x] I have tested this change - [x] This change requires documentation update
1 parent 33e4112 commit daf129e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

β€ŽLOCAL-DEVELOPMENT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ For development and testing, you can run Semaphore locally using Minikube:
6161

6262
```bash
6363
# Get credentials
64-
kubectl get secret root-user -n default -o jsonpath='{.data.email}' | base64 -d
65-
kubectl get secret root-user -n default -o jsonpath='{.data.password}' | base64 -d
66-
kubectl get secret root-user -n default -o jsonpath='{.data.token}' | base64 -d
64+
kubectl get secret semaphore-authentication -n default -o jsonpath='{.data.ROOT_USER_EMAIL}' | base64 -d
65+
kubectl get secret semaphore-authentication -n default -o jsonpath='{.data.ROOT_USER_PASSWORD}' | base64 -d
66+
kubectl get secret semaphore-authentication -n default -o jsonpath='{.data.ROOT_USER_TOKEN}' | base64 -d
6767
```
6868

6969
Open `https://id.semaphore.localhost` and log in!

β€Žhelm-chart/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ To start using the app, go to: https://id.{{ .Values.global.domain.name }}/login
55

66
You can fetch credentials for the login running this command:
77

8-
echo "Email: $(kubectl get secret {{ .Values.global.rootUser.secretName }} -n {{ .Release.Namespace }} -o jsonpath='{.data.email}' | base64 -d)"; echo "Password: $(kubectl get secret {{ .Values.global.rootUser.secretName }} -n {{ .Release.Namespace }} -o jsonpath='{.data.password}' | base64 -d)"; echo "API Token: $(kubectl get secret {{ .Values.global.rootUser.secretName }} -n {{ .Release.Namespace }} -o jsonpath='{.data.token}' | base64 -d)"
8+
echo "Email: $(kubectl get secret {{ include "secrets.authentication.name" . }} -n {{ .Release.Namespace }} -o jsonpath='{.data.ROOT_USER_EMAIL}' | base64 -d)"; echo "Password: $(kubectl get secret {{ include "secrets.authentication.name" . }} -n {{ .Release.Namespace }} -o jsonpath='{.data.ROOT_USER_PASSWORD}' | base64 -d)"; echo "API Token: $(kubectl get secret {{ include "secrets.authentication.name" . }} -n {{ .Release.Namespace }} -o jsonpath='{.data.ROOT_USER_TOKEN}' | base64 -d)"
99
=============================================================================================

0 commit comments

Comments
Β (0)