Open marians opened 7 months ago
I really like the idea. It will perfectly fit in new reference
doc section :)
We have discussed this topic in SIG Dev on April 4.
I'm going to work on a suggestion how we can make the k8smetadata library the source of the generated documentation.
We may need a custom tag format, or structured comments, so that we can capture structured data regarding the label "consumers".
User story
As an engineer working with Kubernetes resources in Giant Swarm clusters, I want to understand why a label exists on a resource and what effect it has.
As an engineer creating charts for deployment in a Giant Swarm cluster, I want to know which labels resources are expected to have and why, and which values these should have.
Details
I propose creation of a single reference page where all labels we care about can be found. For each label, a description should be given. If possible, a link to further information should be added, pointing to the authoritative source for this item.
The page should be structured by label namespace (prefix).
For annotations, a very similar but separate page could be published.
This should be part of our reference docs at docs.giantswarm.io.
Status quo
Mistakes are being made already. Some examples:
app.giantswarm.io/*
was changed toapplication.giantswarm.io/*
, but the former is still more common.application.giantswarm.io/team
, some haveapp.giantswarm.io/team
app.kubernetes.io/app
, which is not documented upstreamMaterial we have
Previously we have gathered some info in this page:
https://github.com/giantswarm/fmt/blob/main/kubernetes/annotations_and_labels.md
Also we maintain a library https://github.com/giantswarm/k8smetadata