-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Standardize labels with k8s-app #3154
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: If they are not already assigned, you can assign the PR to them by writing 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 |
if you go on this path you should use the recommended labels:
|
@@ -2,15 +2,15 @@ apiVersion: extensions/v1beta1 | |||
kind: DaemonSet | |||
metadata: | |||
labels: | |||
app: netchecker-agent | |||
k8s-app: netchecker-agent |
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.
app.kubernetes.io/name
@@ -5,18 +5,18 @@ metadata: | |||
name: cephfs-provisioner-{{ cephfs_provisioner_image_tag }} | |||
namespace: {{ cephfs_provisioner_namespace }} | |||
labels: | |||
app: cephfs-provisioner | |||
k8s-app: cephfs-provisioner | |||
version: {{ cephfs_provisioner_image_tag }} |
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.
app.kubernetes.io/name
app.kubernetes.io/version
@@ -4,7 +4,7 @@ kind: ClusterRole | |||
metadata: | |||
name: cert-manager | |||
labels: | |||
app: cert-manager | |||
k8s-app: cert-manager | |||
chart: cert-manager-v0.4.1 | |||
release: cert-manager | |||
heritage: Tiller |
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 is there 'tiller' label when it's not deployed via tiller ?
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.
Same note for chart and release.
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.
Copy & Past from official manifest example for simplify integration overhead (i.e. lesser result during diff):
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.
use 'official' labels
I am just trying to “standardize” the use of k8s-app or app in kubespray, but not going to “choose” which label should be use or official... Could I simply have an answer that: use k8s-app or app in kubespray? |
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'm hesitant to accept changes to labels that have been there for a long time without a clear migration path. This could break customer tooling that expects some labels to be there.
Maybe one could standardize for the time being on having app, k8s-app and the official ones, slowly deprecating both app and k8s-app?
For addons that I keep on migrate and sync to kubespray, e.g. weave, ingress-nginx, cert-manager and cephfs-provisioner, they are all using “app” in their “official” manifests example, so I can’t see why not keep them as-is “app” and so simplify the migration path. BTW, I also respect the kubespray’s style, so duing migration I keep try to “change” them to “k8s-app”, but this really annoying :-( |
@hswong3i what is the repo of the addons you maintain? |
https://github.com/kubernetes/ingress-nginx/tree/master/deploy https://github.com/jetstack/cert-manager/tree/master/contrib/manifests/cert-manager https://github.com/kubernetes-incubator/external-storage/tree/master/ceph/cephfs/deploy For weave manifests generate by following their official release installation procedure and so download from weave.net |
I agree, that we need to change to k8s proposed naming so all can relay, for sake of migration we can leave both for now, and just add Deprecation note on labels on next release |
@ant31 it is not such simple for fixing upstream... e.g. kubernetes/ingress-nginx#2970 need follow up with kubernetes/ingress-nginx#3035 |
yep, thanks. I still have to open issues on other upstream projects. |
We are using
k8s-app
as label in kubespray