-
Notifications
You must be signed in to change notification settings - Fork 263
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
Adding label #328
Comments
Same question as for #327: Where to add the labels ? Service, Pod or both ? Regardless what the behaviour must be consistent regarding to labels and annotations. |
/assign aaron-lerner |
@sixolet: GitHub didn't allow me to assign the following users: aaron-lerner. Note that only knative members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. 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. |
Applying to knative service will trickle down to the pods as well.
Here is an example of labels and annotations applied to the service.
https://raw.githubusercontent.com/VeerMuchandi/catalystdemo/master/serverless/todo-serverless.yaml
…On Mon, Aug 5, 2019 at 4:48 AM Roland Huß ***@***.***> wrote:
Same question as for #327 <#327>:
Where to add the labels ? Service, Pod or both ?
Regardless what the behaviour must be consistent regarding to labels and
annotations.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#328?email_source=notifications&email_token=ABRVS75XH2VRPSMYFG4IMO3QC7SOHA5CNFSM4II6437KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3REHFY#issuecomment-518144919>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABRVS77GLX64XEUNA6PNPODQC7SOHANCNFSM4II6437A>
.
|
@VeerMuchandi I don't think that's accurate. Your example has the labels in the revisionTemplate, not as part of the Service's ObjectMeta itself. I don't think labels in ObjectMeta propagate down. |
Thanks Markus
I understood the question differently. I thought configuration, revision
and route were being created separately based on the question.
I meant it was part of the service's yaml and yes it is part of the
spec.template.metadata and this applies both to labels and annotations.
…On Wed, Aug 7, 2019 at 6:31 AM Markus Thömmes ***@***.***> wrote:
@VeerMuchandi <https://github.com/VeerMuchandi> I don't think that's
accurate. Your example has the labels in the revisionTemplate, not as part
of the Service's ObjectMeta itself. I don't think labels in ObjectMeta
propagate down.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#328?email_source=notifications&email_token=ABRVS76KE3IJXY6YDY4OSMDQDKP6JA5CNFSM4II6437KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3X6WNY#issuecomment-519039799>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABRVS7ZPNB7XD3LB5P4BMDTQDKP6JANCNFSM4II6437A>
.
|
/assign |
there was a equal sign accidentally committed in previous PR, it would fail cleanup job due to missing parameters
In what area(s)?
kn
command line optionClassifications:
Describe the feature:
Ability to add user defined labels to the service and its artifacts. Certain implementation specific features depend on labels. Being able to add a label with
kn
will avoid additional overhead of unnecessarily updating the service (and avoiding a new revision) just for adding a label.Example
kn service create myservice --label=app.kubernetes.io/part-of=mygroup
The text was updated successfully, but these errors were encountered: