kubeflow / pipelines

Machine Learning Pipelines for Kubeflow
https://www.kubeflow.org/docs/components/pipelines/
Apache License 2.0
3.6k stars 1.62k forks source link

[KF 1.0 Compliance] app.kubernetes.io labels on every resource #3755

Closed Bobgy closed 7 months ago

Bobgy commented 4 years ago
Part of https://github.com/kubeflow/pipelines/issues/2884 Compliance doc: https://github.com/kubeflow/community/blob/master/guidelines/application_requirements.md Description Category Explanation
app.kubernetes.io labels on every resource Required Every resource that is part of the application should include the labels recommended by Kubernetes, currently:app.kubernetes.io/nameapp.kubernetes.io/instanceapp.kubernetes.io/versionapp.kubernetes.io/componentapp.kubernetes.io/part-ofapp.kubernetes.io/managed-bySee example here
Bobgy commented 4 years ago

The problem is that common labels feature in kustomize cannot be used for applying these labels: https://github.com/kubeflow/manifests/issues/1131

Because it is applied to selectors too, while selectors have to be immutable for upgrade.

Due to the limitations, I think it's better to defer this requirement to post 1.0 until there's a maintainable solution.

Upstream kustomize has a solution to add labels commonly without changing selector: https://github.com/kubernetes-sigs/kustomize/issues/1009#issuecomment-559558000

but I tried, the feature wasn't even introduced in kustomize 3.1.0, it will take a long time before kubectl kustomize picks it up.

Bobgy commented 4 years ago

/cc @jlewi Sounds reasonable to defer this until later than KFP 1.0?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Bobgy commented 4 years ago

/lifecycle frozen

rimolive commented 7 months ago

Closing this issue. Looks like the resources are already annotated.

/close

google-oss-prow[bot] commented 7 months ago

@rimolive: Closing this issue.

In response to [this](https://github.com/kubeflow/pipelines/issues/3755#issuecomment-2016819205): >Closing this issue. Looks like the resources are already annotated. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.