-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Proposal: Use standard k8s labels #2497
Comments
In general, I am +:100: on this :wink:
None, and if we would follow
/kind feature |
Thanks for clearing this up. Reading the labels:
app.kubernetes.io/name: tekton-pipelines
app.kubernetes.io/component: controller or labels:
app.kubernetes.io/name: controller
app.kubernetes.io/part-of: tekton-pipelines The second one looks closer to the docs. If we use this, we probably should omit the |
/assign |
Closing as all related PRs were merged. |
What
Use standard/recommended k8s labels to identify applications/components resources (https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/)
Why
Tekton applications need to find resources belonging to other applications (dashboard needs to talk to pipelines and triggers, triggers needs to talk to pipelines, etc.).
The current process for identifying resources in dependent applications is lacking flexibility, often relying on resource names (see https://github.com/tektoncd/dashboard/blob/83f7c6a9746470f5fb391a160779d855f8db8e00/pkg/endpoints/dashboard.go#L110-L130 for example).
Also, version labels are not completely clear to me:
pipeline/config/controller.yaml
Lines 23 to 24 in c11c6af
What is the difference between
pipeline.tekton.dev/release
andversion
?How
We could establish a clear list of applications/components labels and document them.
These labels should be set on all resources and we should use them to lookup the necessary resources instead of relying on names.
Such a list could look something like this:
tekton-pipelines
controller
v0.11.3
tekton-pipelines
webhook
v0.11.3
tekton-triggers
controller
v0.4.0
tekton-triggers
webhook
v0.4.0
tekton-dashboard
controller
v0.6.1
tekton-webhooks-extension
extension
v0.6.1
tekton-webhooks-extension
validator
v0.6.1
Other labels (
app.kubernetes.io/instance
,app.kubernetes.io/part-of
, andapp.kubernetes.io/managed-by
) could be used to reflect the deployment instance and the technology used to deploy (kubectl/helm).Benefits
The benefits would be:
The text was updated successfully, but these errors were encountered: