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

fix: add customPreStopCommand value #246

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Riqardos
Copy link

What was done:

  • added customPreStopCommand to be able to customize preStop behavior
  • using this value we should be able to prevent this issue

@@ -166,6 +166,9 @@ containers:
rm -rf ${TMPDIR};
{{- end }}
{{- end }}
{{- range .Values.pipelines.customPreStopCommand }}
- "{{ . }}"
Copy link
Owner

@clemlesne clemlesne Aug 31, 2024

Choose a reason for hiding this comment

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

If the above conditions are false and the new variable is kept as its default, the same bug will occur. This will force users to debug the install process for a dumb issue.

Plus, note that the issue should appear on Windows, which is not covered by this fix.

I propose adding final else statements for each block (Windows and Linux) with something like true instead of the command. This is simpler and will work out of the box.

@clemlesne
Copy link
Owner

Thank you @Riqardos for this PR, I really appreciate. I sent a comment, for a quick fix.

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