cluster-api icon indicating copy to clipboard operation
cluster-api copied to clipboard

Missing documentation: Supported annotations and labels

Open randomvariable opened this issue 4 years ago • 18 comments
trafficstars

What steps did you take and what happened:

Have had a number of customer issues that could have been alleviated if people knew about the use of the pause annotations. The pause annotation for example is mentioned with regards to the machine health check but it has broader applicability.

In addition, when doing a code walkthrough, I stumbled across the interruptible node label, which is documented in one of the CAEPs but appears nowhere in the book with a concise summary as to why you want to use it.

/help

What did you expect to happen:

Annotations and labels are documented.

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

It is probably worth having one reference document with all of the annotations and labels.

Environment:

  • Cluster-api version:
  • Minikube/KIND version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):

/kind bug [One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]

/help

randomvariable avatar Oct 05 '21 23:10 randomvariable

@randomvariable: This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-help command.

In response to this:

What steps did you take and what happened:

Have had a number of customer issues that could have been alleviated if people knew about the use of the pause annotations. The pause annotation for example is mentioned with regards to the machine health check but it has broader applicability.

In addition, when doing a code walkthrough, I stumbled across the interruptible node label, which is documented in one of the CAEPs but appears nowhere in the book with a concise summary as to why you want to use it.

/help

What did you expect to happen:

Annotations and labels are documented.

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

It is probably worth having one reference document with all of the annotations and labels.

Environment:

  • Cluster-api version:
  • Minikube/KIND version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):

/kind bug [One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]

/help

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.

k8s-ci-robot avatar Oct 05 '21 23:10 k8s-ci-robot

/good-first-issue

randomvariable avatar Oct 06 '21 00:10 randomvariable

@randomvariable: This request has been marked as suitable for new contributors.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue

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.

k8s-ci-robot avatar Oct 06 '21 00:10 k8s-ci-robot

/kind documentation

randomvariable avatar Oct 06 '21 00:10 randomvariable

/assign @chetak123

chetak123 avatar Oct 07 '21 18:10 chetak123

/milestone v1.1

vincepri avatar Oct 22 '21 17:10 vincepri

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jan 25 '22 07:01 k8s-triage-robot

/lifecycle frozen

fabriziopandini avatar Jan 25 '22 09:01 fabriziopandini

Hey @randomvariable I would like to document "annotation and labels". Will you please give me a brief idea on resolving this by providing some reference links? Thanks.

mehabhalodiya avatar Feb 11 '22 15:02 mehabhalodiya

Hi @mehabhalodiya thanks for picking up this work! I think that a good starting point for this effort is to look at the labels/annotations defined in our API packages:

  • https://pkg.go.dev/sigs.k8s.io/cluster-api/api/v1beta1
  • https://pkg.go.dev/sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1beta1
  • https://pkg.go.dev/sigs.k8s.io/cluster-api/controlplane/kubeadm/api/v1beta1
  • https://pkg.go.dev/sigs.k8s.io/cluster-api/exp/api/v1beta1
  • https://pkg.go.dev/sigs.k8s.io/cluster-api/exp/addons/api/v1beta1

fabriziopandini avatar Feb 14 '22 13:02 fabriziopandini

Hey @mehabhalodiya are you still working on it or may I pick this up?

whtssub avatar Feb 26 '22 07:02 whtssub

@SubhasmitaSw you can work on it. Thanks!

mehabhalodiya avatar Feb 26 '22 07:02 mehabhalodiya

Thanks @mehabhalodiya /assign

whtssub avatar Feb 26 '22 07:02 whtssub

@SubhasmitaSw have you had any time to work on this?

killianmuldoon avatar Jul 25 '22 12:07 killianmuldoon

#6966 Related - we should document spec fields and annotations together if possible.

killianmuldoon avatar Jul 25 '22 12:07 killianmuldoon

/triage accepted /unassign @SubhasmitaSw

fabriziopandini avatar Sep 30 '22 19:09 fabriziopandini

@fabriziopandini , I would like to work on this issue. Can you please assign it to me? And If possible show me a sample list So that I can get a basic idea.

hackeramitkumar avatar Oct 12 '22 18:10 hackeramitkumar

/assign @hackeramitkumar (I think you can assign yourself)

I will start bu adding a page in the book under reference with two paragraphs, one for supported labels and the other for supported annotations. Each paragraph should have a table with label/annotation and note.

then you have to search in the locations listed in https://github.com/kubernetes-sigs/cluster-api/issues/5394#issuecomment-1039089099

for things like https://github.com/kubernetes-sigs/cluster-api/blob/bb6df67e6dbbe80707291538db9a9f76a42df451/api/v1beta1/common_types.go#L25-L27

and grab the label/annotation name + the description, something like

label note
cluster.x-k8s.io/cluster-name this label is set on machines linked to a cluster and external objects(bootstrap and infrastructure providers)

fabriziopandini avatar Oct 12 '22 19:10 fabriziopandini