-
Notifications
You must be signed in to change notification settings - Fork 20
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
test: add helm test hook to test resources #25
Conversation
Not sure why test here is failing, when using a fresh minikube cluster, the helm install&test seems to work fine...
|
@rchincha @andaaron @peusebiu @Andreea-Lupu Any comments on this PR? |
Hi @Kortekaasy, the reason for what the checks failed is that zot can't start because |
Hi @Andreea-Lupu, thanks for the response. Would it make sense to create separate helm charts for every CI test, that refer to the zot-registry chart as sub-chart? That way you could put the extra resources needed for your CI tests in the |
@Kortekaasy Pls also look at Andreea-Lupu@d3394d9#diff-662dff05c7dfe6681c1007ae601e8573d413a03f9f9d53d951c2cb99caba4fd4 and https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml#L109 There are some options here. |
Thanks for the pointers. I've played around with testing the different deployments as well, and I've come up with the solution described in my helm-chart-tests branch. I create separate 'test' helm charts in the Let me know what you think about this approach, would be happy to create a PR for it |
@Kortekaasy would put those under tests/ci. But like the approach though. Pls post an updated PR and let's take a lot. |
df42dd2
to
9ebaf27
Compare
Sorry, forgot to ping you after I finished my changes. I think everything should be ready like this. Let me know if there's anything else I need to change. |
Hi @Kortekaasy . I tried your PR and it looks good for the most part. I like this structure because everything looks cleaner and more organized, but I only have 2 concerns:
Otherwise lgtm, I like this approach. |
Hi @Andreea-Lupu, thanks for the kind words. Regarding your first comment, could you tell me which files? I don't have |
For example, so I think @Kortekaasy could you please add the |
Signed-off-by: Yoep Kortekaas <[email protected]>
@Andreea-Lupu added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@Kortekaasy thanks for the PR! |
What type of PR is this?
cleanup
Which issue does this PR fix:
When deploying the helm chart, the two secrets from the
test-connection.yaml
test are also deployed in the K8s cluster.What does this PR do / Why do we need it:
This PR adds the
"helm.sh/hook": test
annotation to these two secrets, such that they are only deployed when a Helm test is run.If an issue # is not available please add repro steps and logs showing the issue:
To reproduce, install helm chart and check the secrets associated to the helm chart.
Testing done on this change:
Automation added to e2e:
Will this break upgrades or downgrades?
Probably not? Unless a deployment is dependent on these testing resources being present
Does this PR introduce any user-facing change?:
yes
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.