-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix validations for Sidecars to be consistent #7443
Conversation
the Validate method can be called from the reconciler as well as the webhook, so I'd just remove this bit from the release note |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
This commit fixes the inconsistent validations for Sidecars by adding webhook validations. It previously only validate Sidecar at runtime instead of what's validated for Step at webhook. It also deletes the docString showing and are optional. BUT the labels of these two fields are kept for backwards compatibility purposes. /kind bug fixes: tektoncd#7437
22e5f97
to
b97fd65
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@@ -115,7 +115,6 @@ spec: | |||
volumeMounts: | |||
- name: messages | |||
mountPath: /messages | |||
script: echo test |
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.
why was this removed?
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.
This was previously invalid syntax which aimed to test as many fields as possible in Task but not tested for sidecar.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom 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 |
/cherry-pick release-v0.53.x |
@JeromeJu: once the present PR merges, I will cherry-pick it on top of release-v0.53.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. |
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
@JeromeJu: new pull request created: #7446 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. |
/cherry-pick release-v0.50.x |
@JeromeJu: new pull request created: #7451 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
This commit fixes the inconsistent validations for Sidecars by adding webhook validations. It previously only validate Sidecar at runtime instead of what's validated for Step at webhook.
It also deletes the docString showing
stepTemplate.image
andsidecar.image
are optional. BUT the labels of these two fields are kept for backwards compatibility purposes./kind bug
fixes: #7437
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes