kubernetes
kubernetes copied to clipboard
Ideas for further handy Kubernetes helpers
- 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).
Also, in similar vein: label modifier
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?
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.