pepr
pepr copied to clipboard
Provide a way to customize mutation "success" annotation
Is your feature request related to a problem? Please describe.
Currently pepr will add an annotation upon successful mutation of a k8s object. This happens via updateStatus and is hardcoded to ${config.uuid}.pepr.dev/${name}: succeeded
when something is successful. We would like a way to customize the key and/or value of this annotation to our unique mutations, and ideally have the key/value be unique per mutation in our capability.
Describe the solution you'd like
Unsure of what would make the most sense but I would like options to either:
- opt out of the pepr mutation annotation (in favor of my own)
- some way to pass in configuration to the annotation (ex: pass in a string about the mutation instead of
succeeded
)
I'm not very familiar with the pepr code surrounding this, but wonder if it would be possible to set something in the request or elsewhere to tell pepr what to add.
Describe alternatives you've considered
We could add an additional mutation of our own, which is very viable, but the default mutation would still be added so it could be duplicative.