klient
klient copied to clipboard
[Feature] Add Annotations
Is your feature request related to a problem? Please describe. This is a nice to have feature, it's not a problem yet
Describe the solution you'd like
All the objects modified by klient
should have an specific annotation. Optionally, we can allow the developer to set it's own annotation.
Describe alternatives you've considered As an alternative the annotation could be included in the content or file to apply.
Proposal Before create or update the object call:
err := util.CreateOrUpdateAnnotation(annotation, info.Object, scheme.DefaultJSONEncoder())
to append this annotation to the object, this should be in the func called by r.Visit(info)
such as create()
and patch()
Additional context
It's in kubectl
but it does append the annotation provided by the user
References None