-
Notifications
You must be signed in to change notification settings - Fork 160
feat(cluster): add support for env and envFrom #610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@itay-grudev hello. Any ideas how can I force PR review, please? |
Could you please include an example in the non-default configuration test? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the non-default configuration test.
- introduce `cluster.env` and `cluster.envFrom` in values.yaml - render them conditionally in templates/cluster.yaml under the Postgres container Signed-off-by: Sahaquielxo <[email protected]>
Signed-off-by: Sahaquielxo <[email protected]>
@itay-grudev I hope this will be enough. Let me know if I have to add anything else. |
{{- if .Values.cluster.env }} | ||
env: | ||
{{ toYaml .Values.cluster.env | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.cluster.envFrom }} | ||
envFrom: | ||
{{ toYaml .Values.cluster.envFrom | indent 4 }} | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution.
The yamllint fails, can you update With this changes:
{{- if .Values.cluster.env }} | |
env: | |
{{ toYaml .Values.cluster.env | indent 4 }} | |
{{- end }} | |
{{- if .Values.cluster.envFrom }} | |
envFrom: | |
{{ toYaml .Values.cluster.envFrom | indent 4 }} | |
{{- end }} | |
env: | |
{{ toYaml .Values.cluster.env | nindent 4 }} | |
{{- end }} | |
{{- if .Values.cluster.envFrom }} | |
envFrom: | |
{{ toYaml .Values.cluster.envFrom | nindent 4 }} | |
{{- end }} |
The chainsaw test succeed after the fix.
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also remove these lines 84-85
Thank you.
cluster.env
andcluster.envFrom
in values.yamlFix #609 issue