-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Helm deployer is looking for a Helm test pod by default resulting in confusing warning text #5132
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
Comments
Thank you @j2udevelopment for opening this issue from slack conversation. As far i see, skaffold team can do two things here.
|
No problem! Let me know if I can provide any further input |
Hi @tejal29 is this open for contribution? I faced similar issue because of test template and I think I can start taking a look into this problem. |
Please do @imrenagi. We are always looking for more contributions. Please comment on the bug if you need any pointers. |
@tejal29 Im planning to add The Developer.md mention that it is okay to add new config to v3 since it is not released yet. However, when running the test, I observe this error.
Any pointer will be appreciated. Thanks! |
@imrenagi you should create a new schema version - EDIT: This should be |
Thanks for the pointer @aaron-prindle . I will update the PR |
@imrenagi I am actually in the process of adding a new schema version: as our tooling does not do this 100% automatically (some issues w/ TLDR; wait for my PR to get merged (eg: 11/3/2022) and I will ping this thread. Then you can rebase and submit a PR identical to what you have now |
Hi @aaron-prindle I checked the PR for the new schema version you created and it was closed. Should I wait for another PR to be merged? Thanks! |
Thanks @aaron-prindle . I have updated my PR. waiting for review now. Thanks once again :) |
Helm tests are awesome, but you opt-in to them by running the
helm test <my-release>
command when using the Helm CLI directly. When using Skaffold's Helm deployer, it appears to be looking for the existence of a test pod, but at least on the surface doesn't appear to give us the ability to run a Helm test command. This kind of causes a chicken-and-egg problem for a couple of reasons.helm test <my-release that is deployed using the skaffold helm deployer>
It appears that Skaffold is just grabbing all templates, including those templates under
tests
(I don't believe the directory structure actually dictates what is a test and what isn't... I believe the helm hook annotation is what actually matters). I think there is room for a Helm test specific feature in the future here, but in the meantime can we maybe ignore the templates with the"helm.sh/hook": test
or"helm.sh/hook": test-success
annotation?Expected behavior
I should be able to use the Skaffold Helm deployer without it caring about Helm tests.
Actual behavior
Skaffold spits out confusing warnings because it can't find a corresponding pod that would only ever exist after running the helm test command... which we can't run until we deploy the release anyway.
Information
Steps to reproduce the behavior
in any directory with a skaffold.yaml that utilizes the Helm deployer.
The text was updated successfully, but these errors were encountered: