Plumb revision annotations through to services and deployments#576
Plumb revision annotations through to services and deployments#576mattmoor merged 1 commit intoknative:masterfrom
Conversation
* Only propagate the annotations specified under a configuration's spec.RevisionTemplate.metadata.annotations * Adds test to ensure revisionTemplate annotations are passed to revisions knative/serving#359 Signed-off-by: Brenda Chan <brchan@pivotal.io>
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
I'm always ok! |
| Name: controller.GetRevisionAutoscalerName(u), | ||
| Namespace: AutoscalerNamespace, | ||
| Labels: MakeElaResourceLabels(u), | ||
| Annotations: MakeElaResourceAnnotations(u), |
There was a problem hiding this comment.
This pulls in the istio sidecar annotation as well, is that something that we want? Are there any side effects on this?
There was a problem hiding this comment.
This pulls in the istio sidecar annotation as well
Only if a RevisionTemplate's metadata has specified it. Is that your concern?
There was a problem hiding this comment.
Yeah, I was just curious if this is what we want and if the istio sidecar goes in there, will it impact anything?
There was a problem hiding this comment.
Will do some digging to confirm
There was a problem hiding this comment.
We confirmed that if the RevisionTemplate has an Istio sidecar annotation on the service, it would not impact anything since the annotation only applies to the Pods.
See the istio webhook config for evidence
| Labels: MakeElaResourceLabels(u), | ||
| Name: controller.GetRevisionAutoscalerName(u), | ||
| Namespace: AutoscalerNamespace, | ||
| Labels: MakeElaResourceLabels(u), |
There was a problem hiding this comment.
Should we apply the custom annotations and labels to autoscaler pod or should we skip this part? autoscaler is a system component and it might be better to keep it hidden from the user and not copy labels and annotations that the user specified to it. What do you think?
There was a problem hiding this comment.
We chose to plumb the labels and annotations through to the autoscaler as well because we thought the intent was that the user can then target all services and pods that are created as part of creating a Configuration.
|
@mdemirhan @vaikas-google Let us know what you think of the comments above and if you feel strongly about any of them. |
|
I am fine with autoscaler pod having the labels as well. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bsnchan, mdemirhan, vaikas-google The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hey @dprotaso that "I'm always ok!" comment was giving your approval for your commits getting merged? Just checking before hitting the approve button :) |
|
Yes :)
…On Fri, Apr 6, 2018 at 15:56 Ville Aikas ***@***.***> wrote:
Hey @dprotaso <https://github.com/dprotaso> that "I'm always ok!" comment
was giving your approval for your commits getting merged? Just checking
before hitting the approve button :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#576 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABIglNI1Ofgqqh0ap51qSX6d0r9SW1Vks5tl8iIgaJpZM4TFlKn>
.
|
The PR was in the merge pool, but it vanished since this was manually merged. @krzyzacy what would be the right command/approach here? The help page doesn't show any explicit command for "author consent", and I'm not sure if /skip, /approval or /ok-to-test would help here. |
|
looks like cla need to be re-signed? cc @cjwagner |
Signed-off-by: Brenda Chan brchan@pivotal.io
Fixes Issue #359
Proposed Changes
Only propagate the annotations specified under a
configuration's spec.RevisionTemplate.metadata.annotations
Adds test to ensure revisionTemplate annotations are passed to revisions