Skip to content

Commit 95db09a

Browse files
Jonathan S. Katzs-mawjee
andcommitted
Fix some errant namespace names
The co-author caught the Helm error, which lead me to check for other places where I apparently substituted too much of my local environment. Co-authored-by: Shahil Mawjee <[email protected]>
1 parent 4333c74 commit 95db09a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/content/tutorial/connect-cluster.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ Following the example we've created, the hostname for our PostgreSQL cluster is
116116

117117
Knowing this, we can construct a [Postgres URI](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING) that contains all of the connection info:
118118

119-
`postgres://testuser:securerandomlygeneratedpassword@hippo.jkatz.svc.cluster.local:5432/hippo`
119+
`postgres://testuser:securerandomlygeneratedpassword@hippo.pgo.svc.cluster.local:5432/hippo`
120120

121121
which breaks down as such:
122122

123123
- `postgres`: the scheme, i.e. a Postgres URI
124124
- `testuser`: the name of the PostgreSQL user
125125
- `securerandomlygeneratedpassword`: the password for `testuser`
126-
- `hippo.jkatz.svc.cluster.local`: the hostname
126+
- `hippo.pgo.svc.cluster.local`: the hostname
127127
- `5432`: the port
128128
- `hippo`: the database you want to connect to
129129

examples/helm/postgres/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ And use the following connection string to connect to your cluster:
4747

4848
If you need to log in as the PostgreSQL superuser, you can do so with the following command:
4949

50-
PGPASSWORD=$(kubectl -n jkatz get secrets {{ .Values.name }}-postgres-secret -o jsonpath='{.data.password}' | base64 -d) psql -h localhost -U postgres {{ .Values.name }}
50+
PGPASSWORD=$(kubectl -n {{ .Values.namespace }} get secrets {{ .Values.name }}-postgres-secret -o jsonpath='{.data.password}' | base64 -d) psql -h localhost -U postgres {{ .Values.name }}
5151

5252
More information about the custom resource workflow the docs can be found here:
5353

0 commit comments

Comments
 (0)