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

Closed
wants to merge 2 commits into 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.

@clemlesne clemlesne linked an issue Sep 28, 2024 that may be closed by this pull request
@Riqardos
Copy link
Author

@clemlesne I think the issue is solved in the this PR, thx

@Riqardos Riqardos closed this Sep 30, 2024
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.

[Bug]: No organizationURL given
2 participants