Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Removing labels/annotations #72

Closed
mgoodness opened this issue Jul 25, 2018 · 1 comment
Closed

Removing labels/annotations #72

mgoodness opened this issue Jul 25, 2018 · 1 comment

Comments

@mgoodness
Copy link
Contributor

My DecoratorController is able to apply labels & annotations to resources (in my case, Namespaces) by returning corresponding maps. Is there a mechanism for removing them? Returning empty maps doesn't seem to do the job.

@enisoc
Copy link

enisoc commented Jul 26, 2018

The returned map is merged into existing values, so an empty map is interpreted as, "don't change anything." You can remove existing keys by explicitly setting each one to null.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants