Skip to content

Commit

Permalink
fix: use release name secret key ref
Browse files Browse the repository at this point in the history
  • Loading branch information
tjorbo committed Jul 24, 2024
1 parent 09bc655 commit 29ddc35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,21 @@ To upgrade the helm chart, use the `helm upgrade ...` command:
$ helm upgrade terminfinder-demo terminfinder-chart -n terminfinder-demo
```

### Debug Container

```bash
$ kubectl run -i --tty --rm debug --image=busybox -n terminfinder-demo --restart=Never
```

### Delete Release

To delete the helm chart (release), use the `helm uninstall...` command.

Note that the persistent volume may be available even if the helm release is uninstalled.

```bash
# Delete release
# Delete namespace
$ helm uninstall terminfinder-demo -n terminfinder-demo
```

```bash
# Delete PVCs and namespace
$ kubectl delete pvc --all -n terminfinder-demo
$ kubectl delete namespace terminfinder-demo
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.global.postgresql.auth.existingSecret | default (printf "%s-postgresql" (include "common.names.namespace" .)) }}
name: {{ .Values.global.postgresql.auth.existingSecret | default (printf "%s" $svc) }}
key: {{ .Values.global.postgresql.auth.secretKeys.userPasswordKey | default "password" }}
# Patches
- name: Terminfinder__UseHttps
Expand Down
2 changes: 1 addition & 1 deletion terminfinder-chart/charts/terminfinder-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ global:
database: terminfinder
existingSecret: "" # if not set, default: "{{ Release.Name }}-postgres"
secretKeys:
userPasswordKey: "password"
userPasswordKey: "" # if not set, default: "password"
service:
name: "" # if not set, default: "{{ Release.Name }}-postgres"
ports:
Expand Down

0 comments on commit 29ddc35

Please sign in to comment.