Skip to content

Conversation

EnriqueLop
Copy link

New parameter in init object that allow user to automatically delete init job pod when complete.

annotations: {}

# If true init job is deleted when completed. If false the job stays in complete status.
deleteJobOnCompletion: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be better if we rename it to something helm hook related like enable-delete-hook

Comment on lines +23 to +27
{{- if .Values.init.deleteJobOnCompletion }}
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
{{- else }}
helm.sh/hook-delete-policy: before-hook-creation
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

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

We can keep this deletion behaviour as default one and add an option in values.yaml to disable this

@prafull01
Copy link
Collaborator

@EnriqueLop Would you like to revive this PR. Please address the mentioned comments and rebase.

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.

3 participants