jkcfg / kubernetes

Apache License 2.0
25 stars 6 forks source link

Ideas for further handy Kubernetes helpers #63

Open squaremo opened 4 years ago

squaremo commented 4 years ago
errordeveloper commented 4 years ago

Also, in similar vein: label modifier

squaremo commented 4 years ago

Also, in similar vein: label modifier

There's transform/commonMetadata, which adds labels and annotations .. What kind of modifications would you want to do to labels? Changing particular labels, or adding / subtracting from the set of labels?

errordeveloper commented 4 years ago

Example 1

I rendered a Helm chart and it has standard helm labels, like app.kubernetes.io/managed-by=Tiller and helm.sh/chart: foo-v0.0.1.

Example 2

Given a selector, append a new label.


Also, aside from ObjectMeta, one probably wants to edit a LabelSelector.