Skip to content
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

Closed
VeerMuchandi opened this issue Aug 2, 2019 · 7 comments · Fixed by #342
Closed

Adding label #328

VeerMuchandi opened this issue Aug 2, 2019 · 7 comments · Fixed by #342
Labels
kind/feature New feature or request
Milestone

Comments

@VeerMuchandi
Copy link

In what area(s)?

kn command line option

Classifications:

/kind feature

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

@VeerMuchandi VeerMuchandi added the kind/feature New feature or request label Aug 2, 2019
@rhuss
Copy link
Contributor

rhuss commented Aug 5, 2019

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.

@sixolet
Copy link
Contributor

sixolet commented Aug 6, 2019

/assign aaron-lerner

@knative-prow-robot
Copy link
Contributor

@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.
For more information please see the contributor guide

In response to this:

/assign aaron-lerner

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.

@VeerMuchandi
Copy link
Author

VeerMuchandi commented Aug 6, 2019 via email

@markusthoemmes
Copy link
Contributor

@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.

@rhuss rhuss mentioned this issue Aug 7, 2019
@VeerMuchandi
Copy link
Author

VeerMuchandi commented Aug 7, 2019 via email

@navidshaikh
Copy link
Collaborator

/assign

@navidshaikh navidshaikh removed their assignment Sep 30, 2019
coryrc pushed a commit to coryrc/client that referenced this issue May 14, 2020
there was a equal sign accidentally committed in previous PR, it would fail cleanup job due to missing parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants