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

Chart tests.enabled flag #804

Closed
wants to merge 1 commit into from

Conversation

jklaw90
Copy link
Contributor

@jklaw90 jklaw90 commented May 22, 2022

If using kustomize to render the chart and add extra transformations you can't disable the tests with the normal --skip-tests see issue.
Just adding this this flag to get around this case.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 22, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @jklaw90. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 22, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign seanmalloy after the PR has been reviewed.
You can assign the PR to them by writing /assign @seanmalloy in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

@damemi damemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ok-to-test

charts/descheduler/values.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@damemi damemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems ok, but imo it's weird to set a flag to just disable the content of the entire file rather than omit the caller to the file in the first place. Have you tested this locally?

Also don't know why CI says "waiting for status to be reported"

@jklaw90
Copy link
Contributor Author

jklaw90 commented May 27, 2022

yeah, i tested it locally works fine and i agree it is odd.
I wonder if kustomize doesn't care to support this case since helm tests are pretty rare.
Our test seems kind of unnecessary too, would it even pass for a cronjob that is deployed for the first time to a new cluster?

@jklaw90 jklaw90 marked this pull request as draft May 29, 2022 16:09
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 29, 2022
@jklaw90 jklaw90 marked this pull request as ready for review May 29, 2022 16:09
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 29, 2022
@k8s-ci-robot k8s-ci-robot requested review from damemi and k82cn May 29, 2022 16:09
@damemi
Copy link
Contributor

damemi commented May 31, 2022

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 31, 2022
@damemi
Copy link
Contributor

damemi commented Jun 1, 2022

@jklaw90 sorry, I haven't forgotten about this (just had other stuff come up). I'm still not sure how I feel about this particular approach, and you bring up a good point about the helm tests too. So I'd like to look into those a bit more before going ahead with this. Is it a critical issue that's blocking kustomize users?

@jklaw90
Copy link
Contributor Author

jklaw90 commented Jun 1, 2022

@damemi yeah, thats totally fine i can close this one out.

@jklaw90 jklaw90 closed this Jun 1, 2022
@damemi
Copy link
Contributor

damemi commented Jun 1, 2022

@jklaw90 could you open an issue so we can track it for now? Not saying this is a wontfix

@jklaw90 jklaw90 mentioned this pull request Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants