Is there anyway to pass custom annotations to the ...
# spicedb
m
Is there anyway to pass custom annotations to the
SpiceDBCluster
CRD when using the operator? I am trying to get access to the metrics on each instance and can do so with setting explicit annotations on the pods. I see in the docs (https://docs.authzed.com/spicedb/operator) there is an option for
extraPodLabels
but nothing about custom annotations. Submitted an issue here: https://github.com/authzed/spicedb-operator/issues/106
e
responded to the GH issue with more detail. there's currently no equivalent field for annotations, but we're not opposed to it. there are some solutions that would work today: - you can set the annotations on the deployment before or after it's created (it won't be overwritten by the operator) - you can use a mutating admission webhook to add whatever you want to the objects (i.e. opa gatekeeper or keyverno) feel free to weigh in on the gh issue if you have a strong opinion!
m
@ecordell thanks for the input. I left a comment as well - if its possible/quick to enable pass through similarly to labels, it would unblock us for now !
w
I'm also running into this same issue. Thanks for opening an issue @mgagliardo !
m
@wkiser no problem! I actually just pushed a PR that mimics how extra labels are handled https://github.com/authzed/spicedb-operator/pull/107