https://authzed.com logo
Title
m

mgagliardo

11/08/2022, 1:43 PM
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

ecordell

11/08/2022, 4:31 PM
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

mgagliardo

11/09/2022, 6:14 PM
@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

warren

11/10/2022, 5:19 PM
I'm also running into this same issue. Thanks for opening an issue @mgagliardo !
m

mgagliardo

11/14/2022, 5:42 PM
@warren no problem! I actually just pushed a PR that mimics how extra labels are handled https://github.com/authzed/spicedb-operator/pull/107