-
Notifications
You must be signed in to change notification settings - Fork 54
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
chore(helm): add hook-delete-policy for Helm chart tests #480
chore(helm): add hook-delete-policy for Helm chart tests #480
Conversation
Test is failing because test-pod is cleaned up as expected when successful and not longer present: tractusx-edc/.github/workflows/deployment-test.yaml Lines 155 to 156 in 2f81217
|
The command should not be the problem - there is a bug that |
For the ci tests the deletion will be disabled. Currently Helm will fail if the hook is set when using flag `--logs` see: helm/helm#10603
I tried this on my local machine, and there it works, but if removing the |
Sure then i would revert the last commit which adds the I thought removing the |
if i understand this right we have two options: to not delete the test pods, or to not have logs, right? |
Right - here both options compared: 1. Option: persist test-pods for test workflow (current implementation of the PR) see: This would work and the pod will not be deleted in the test infrastructure which is no problem (will be deleted anyway).
2. Option: no logs for test workflow
I think I would prefer option 1. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
would that mean, if someone forgot to add those values to their |
No the test-pods will be removed because in the default values.yaml If you want all to persist test-pods you can adapt to the Without this PR the test-pods will not be removed after successful testing. |
ok, that sounds reasonable, thanks for the clarification. |
WHAT
Adding Hook deletion policies for the Helm tests.
WHY
When running tests with Helm the pods will not be tidied up.
When the annotation
"helm.sh/hook-delete-policy": hook-succeeded
is added, after a successful run the pod will be deleted afterwards.If the pod fails it will still be present.
Also the value
before-hook-creation
was added to be able to run the test again if it failed without manually deleting the pod.Marco Lecheler [email protected] Mercedes-Benz Tech Innovation GmbH (ProviderInformation)