-
Notifications
You must be signed in to change notification settings - Fork 169
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
Should tanka deploy test charts by default? #550
Comments
How does Helm handle this? Tanka simply renders the chart with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
local excludeChartTests(resources) =
{
[item.key]: item.value
for item in std.objectKeysValues(resources)
if !(std.type(item.value) == 'object' &&
std.objectHas(item.value, 'metadata') &&
std.objectHas(item.value.metadata, 'annotations') &&
std.objectHas(item.value.metadata.annotations, 'helm.sh/hook') &&
item.value.metadata.annotations['helm.sh/hook'] == 'test')
}; I was having the same issue and this looks like something universal which could help in this case |
|
Yeah that would make most senses, this could be additional optional flag passed for https://github.com/grafana/tanka/blob/main/pkg/helm/helm.go#L25 maybe there is a way to pass it via opts already? Edit: I believe it is https://github.com/grafana/tanka/blob/main/pkg/helm/template.go#L98 |
Jupp, just stumbled upon it at the same time :D Perhaps I can come up with a simple sample tomorrow (if it works) :) |
Using the
|
Yep it works well with the flag on my end as well. https://stackoverflow.com/a/79346465/816230 I have posted the example here |
Can confirm, @zerok 's |
This behaviour was previously undocumented. See #550 for more context.
Hi team!
It seems like when I run
tk apply
it automatically deploys test charts as well. Is that intended behaviour? I feel like it should only run tests if we explicitly tell it to.I put together a small repo reproducing this: https://github.com/gassiss/tanka-issue-example
The text was updated successfully, but these errors were encountered: