-
Notifications
You must be signed in to change notification settings - Fork 196
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
ArtifactsPipelineRunEnableDeepInspection making this field to accept both bool and string #2179
Conversation
Skipping CI for Draft Pull Request. |
@PuneetPunamiya does this make sense ? |
I have tested this with upgrading and it is working fine. |
@rupalibehera can you please rebase 2 commits to one? |
Thanks 🤙🏻 |
cd52a30
to
a5bfc4a
Compare
@rupalibehera @PuneetPunamiya can you please give detail about why this change in required in commit message, and also is it required for all the three fields? |
done |
Also can we add some unit tests for this? |
some boolean fields in tekton config for chains were string and some were boolean, while adding those it was like a guess work if it should be bool or string hence I have updated it, it was required only for one field https://issues.redhat.com/browse/SRVKP-4387 but I added for all others as well |
we do not have any existing unit tests for the same |
AFAIK, we do this when a field which was supposed to be boolean before, now is string, so to support upgrade, which change it like this to support both type/values. If this is the case here, please do this for the field which has got this change. Also, we should add validation defaulting etc accordingly. Also, good to have unit tests if you can add. If this is not the case, and there is some other use case for this, can you please give details for that. Also, would be great if you can put all those details in commit msg and PR |
@rupalibehera Thanks for the PR Also please update the description about this PR, and include JIRA and/or GH issues references on the description, if we have any. and release notes to the users, as this is PR changes the user input. |
@piyush-garg @jkandasa I am just changing ArtifactsPipelineRunEnableDeepInspection field now and dropped the other fields. |
@piyush-garg @jkandasa , can we please merge this without the unit tests, there are very minimal changes now |
The following is the coverage report on the affected files.
|
…rt bool (true) as well string ('true')
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jkandasa, piyush-garg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The following is the coverage report on the affected files.
|
/lgtm |
/cherry-pick release-v0.71.x |
@piyush-garg: once the present PR merges, I will cherry-pick it on top of release-v0.71.x in a new PR and assign it to you. In response to this:
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. |
@piyush-garg: new pull request created: #2231 In response to this:
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. |
Changes
https://issues.redhat.com/browse/SRVKP-4387
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make test lint
before submitting a PRSee the contribution guide for more details.
Release Notes