Question
How can a user include the ides.config.db.schema value in the Helm template output to ensure a non-default PostgreSQL schema is configured during deployment?
Answer
To ensure the ides.config.db.schema value is included in the Helm template output by updating the Helm chart template responsible for rendering the database secret. Follow these steps:
-
Open the chart template file for the database secret, typically located at:
templates/configuration/dbsecret.yaml
-
Add an entry for
schemain the Secret's data section alongside other database-related values. The entry should look like this:
schema: {{ required "ides.config.db.schema must be provided" .Values.ides.config.db.schema | b64enc | quote }}
- Re-render the Helm chart to verify the changes:
helm template . -f ./values.yaml > out.yaml
- Finally, check the rendered output (
out.yaml) and confirm that theschemakey is present in thedata:section of the Secret.
By making this modification, the ides.config.db.schema value from values.yaml will be properly emitted into the Kubernetes Secret, ensuring the deployment uses the correct PostgreSQL schema.
Additional information
Reference ticket: IDES-11542
Comments
0 comments
Please sign in to leave a comment.