When the helm release is ready, the operator fetches the credentials and service name and combines them into a single secret in the instance's namespace.
Secret name is determined by spec.writeConnectionSecretToRef.Name.
Secret gets an owner reference to the instance spec, so that deleting the instance spec also deletes the connection secret.
All keys in the secret are in capitabls and prefixed with POSTGRESQL_.
The following keys are exported:
POSTGRESQL_PASSWORD (user password)
POSTGRESQL_POSTGRES_PASSWORD (super user password)
POSTGRESQL_USER
POSTGRESQL_DATABASE
POSTGRESQL_SERVICE_NAME
POSTGRESQL_SERVICE_URL
POSTGRESQL_SERVICE_PORT
Documentation: #55
Checklist
[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
[x] PR contains the label area:operator
[x] I have not made any changes in the charts/ directory.
Summary
spec.writeConnectionSecretToRef.Name
.POSTGRESQL_
.POSTGRESQL_PASSWORD
(user password)POSTGRESQL_POSTGRES_PASSWORD
(super user password)POSTGRESQL_USER
POSTGRESQL_DATABASE
POSTGRESQL_SERVICE_NAME
POSTGRESQL_SERVICE_URL
POSTGRESQL_SERVICE_PORT
Documentation: #55
Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelogarea:operator
charts/
directory.