Skip to content
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

Support environment vars in springboot chart cronjobs #7

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

modax
Copy link
Contributor

@modax modax commented Feb 24, 2021

Implementation has been 'stolen' from the respective part of
springboot/templates/deployment.yaml So env specification is exactly the
same as in deployment

Implementation has been 'stolen' from the respective part of
springboot/templates/deployment.yaml So env specification is exactly the
same as in deployment
@modax modax merged commit 82aeb4c into master Feb 24, 2021
@modax modax deleted the feat/springboot-cron-env branch February 24, 2021 19:58
secretKeyRef:
{{ toYaml $envdef.secretKeyRef | indent 20 }}
{{- else }}
value: {{ required (printf "Value for variable cronJobs.%s.env.%s.value is undefined" $name $envname) $envdef.value | quote }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: pipe $envdef.value through template function in order to be flexible and support {{ .Values.sth }} expressions inside values.yaml. Same goes for deployment's env definition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense. Will do for both deployments & cronjobs in another PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KarolisL what about being even more flexible and not breaking backwards compatibility #8 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants