Backup: `database-credentials.yaml` secret can't be created
Problem
During backup.sh
, I have the following error message:
Error from server (BadRequest): error when creating "database-credentials.yaml": Secret in version "v1" cannot be handled as a Secret: json: cannot unmarshal number into Go struct field Secret.stringData of type string
The PGPORT
is defined as an integer instead of a string.
Proposal
To make sure the PGPORT
is quoted, we could use:
PGPORT: {{ "%s" | format(dbvars.port) | tojson }}