giantswarm / endpoint-operator

Apache License 2.0
2 stars 1 forks source link

make proper use of labels and annotations #15

Closed xh3b4sd closed 6 years ago

xh3b4sd commented 6 years ago

There was a discussion going on towards the usage of annotations and labels to be able to filter pods within the scope of an informer and to be able to work with component specific information. See the result of the discussion.

Ok so when you want to filter you should use labels and when you want to work with component specific state you should use annotations. In the case of the endpoint-operator we need to use both then.

xh3b4sd commented 6 years ago

/cc @kopiczko @JosephSalisbury @MarcelMue @calvix

kopiczko commented 6 years ago

When creating labels or annotations let's please prefix them.

I propose following scheme: REPO.GROUP.giantswarm.io/PARAM=VAL. For kvm-operator the prefix would be kvm-operator.cluster.giantswarm.io/arbitrary-name=rabitrary-value.

xh3b4sd commented 6 years ago

IMO this is rather a never ending story because of a lot of places we cannot just change right now. I would just close this issue to not pollute the backlog with something we constantly work on anyway. We documented how we want to structure labels here: https://github.com/giantswarm/fmt/blob/e0941cf8365eba93fb349bbc612983ff76c8647c/kubernetes/annotations_and_labels.md.