-
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
Only create & mount Downward API volume when necessary #4953
Conversation
|
Hi @hWorblehat. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
/ok-to-test |
The following is the coverage report on the affected files.
|
d7fb7e3
to
88a71c3
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
276e3a0
to
db00f65
Compare
The following is the coverage report on the affected files.
|
I think this is ready for an initial review now. Do I need to assign someone particular for that? |
/assign @imjasonh Sorry to bug - is there anything else I need to do to prompt a review here, or is it just a case of waiting until people have some free time? |
hi @hWorblehat would you mind squashing into one commit please? (a bit more detail about that in the tekton commit message standards) |
Hi @lbernick, Sorry for slow response, I've been off work this last week. I'd seen the commit message standards, and had thought it made sense to leave the changes as 2 commits as they cover logically distinct behaviours:
Still, I'm happy to squash this all into one commit if you'd prefer. |
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.
I wonder if it would make sense to add a warning if someone has "await-sidecar-readiness=false" but they are using sidecars. If someone enables this they probably have a good reason but would still be nice to have. Can probably be tracked in a separate issue
Possibly our commit message standards could use some improvement :) We typically prefer one commit per PR unless there's a strong reason not to. If you wouldn't mind squashing that would be great, LGTM other than that. |
db00f65
to
41b8c06
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
Hi @lbernick, Squashed as requested. I've also rejigged the |
The following is the coverage report on the affected files.
|
Instead of always mounting a Downward API volume for reading the "ready" annotation on task Pods, we only create it if the pod will not be "immediately ready" (i.e. if it has sidecars). In addition, a new feature flag is added: "await-sidecar-readiness". Setting this to `false` will mean that pods will always be considered "immediately ready", so the Downward API volume will never be mounted.
41b8c06
to
da67816
Compare
The following is the coverage report on the affected files.
|
awesome thanks! /lgtm |
/retest |
1 similar comment
/retest |
Changes
Addresses #4937
await-sidecar-readiness
feature flag, defaulted totrue
. Tasks will always be considered "immediately ready" if this isfalse
./kind feature
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
(if there are no user facing changes, use release note "NONE")
Release Notes