kudobuilder / kudo

Kubernetes Universal Declarative Operator (KUDO)
https://kudo.dev
Apache License 2.0
1.17k stars 103 forks source link

support kubectl annotate #1800

Open michael-db opened 3 years ago

michael-db commented 3 years ago

What would you like to be added: Support an "Annotate" task (with overwrite default) in addition to "Apply".

Why is this needed: kubectl apply might suffice for adding an annotation if the yaml of the resource was available - but kudo also seems to offer no way to get the yaml of an existing resource: it assumes that the only resources you ever want to touch are those which the operator is creating, i.e., where you already have the yaml.

If there is some workaround, it's not obvious. As things stand, it looks like I need to create an operator-sdk program just for a very simple task of adding an annotation to an existing resource.