-
Notifications
You must be signed in to change notification settings - Fork 277
fix: Extract a template for the nextcloud container (app/cronjob) #712
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?
fix: Extract a template for the nextcloud container (app/cronjob) #712
Conversation
Signed-off-by: Martin Kirchner <[email protected]>
998259a
to
d5fa9ce
Compare
volumeMounts: | ||
{{- include "nextcloud.volumeMounts" . | trim | nindent 12 }} | ||
{{- $containerName := printf "%s-cron" .Chart.Name }} | ||
{{- include "nextcloud.container" ( dict "containerName" $containerName "securityContext" .Values.cronjob.securityContext "rootContext" $ "context" .Values.cronjob ) | nindent 8 }} |
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.
why we need securityContext
, if we has already context
?
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.
oh i see -> do you like to move the values.yaml (and make a breaking change / bump to major)?
remembers me on #379 (comment)
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.
@wrenix If it's okay for you I'd rather remove the securityContext
for the app container (as it is deprecated anyhow).
As for the major version - I hope you remember that my actual goal is to move the cron sidecar to a Kubernetes CronJob.
- Do you think the Kubernetes Cronjob has a chance to make it's way into this chart?
- If so, does it make sense to combine these two changes in one new major version?
- What do you propose on how to proceed?
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.
@wrenix Any answer to my questions?
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.
Looks nice
- name: {{ .containerName }} | ||
image: {{ include "nextcloud.image" .rootContext }} | ||
imagePullPolicy: {{ .rootContext.Values.image.pullPolicy }} | ||
{{- if .context.command }} |
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.
use with
instatt of if
Description of the change
Use a helper template to define the containers for app/cronjob.
Benefits
Possible drawbacks
None known.
Applicable issues
Additional information
Checklist
Chart.yaml
according to semver.