kubernetes icon indicating copy to clipboard operation
kubernetes copied to clipboard

Ideas for further handy Kubernetes helpers

Open squaremo opened this issue 5 years ago • 3 comments

  • A transformation which will re-namespace resources -- not just the metadata.namespace, but references to things with namespaces (possibly by keeping track of what has changed where it is, then running through and updating everything else).

squaremo avatar Mar 04 '20 20:03 squaremo

Also, in similar vein: label modifier

errordeveloper avatar Mar 05 '20 06:03 errordeveloper

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?

squaremo avatar Mar 05 '20 09:03 squaremo

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.

errordeveloper avatar Mar 05 '20 09:03 errordeveloper