varnish-operator icon indicating copy to clipboard operation
varnish-operator copied to clipboard

Need to add annotations to varnish cluster spec

Open iahmad-khan opened this issue 1 year ago • 3 comments

I need to add the following annotations to the cluster definition so that all other objects created by cluster definition ( such as stateful set and pods ) inherit these annotations, currently, it doesn't work.

annotations:
   prometheus.io/scrape: "true"
   prometheus.io/port: "9131" 

iahmad-khan avatar May 30 '23 17:05 iahmad-khan

This repo currently isn't being maintained. I have started maintaining a fork of this repo w/the hopes of periodically getting things merged back here. Here's the fork location and podAnnotation config: https://github.com/cin/varnish-operator/blob/main/api/v1alpha1/varnishcluster_types.go#L93.

cin avatar May 31 '23 16:05 cin

@cin thanks. Does it mean do I need to reinstall the operator from the forked repo? and then reinstall the varnish cluster

iahmad-khan avatar Jun 01 '23 08:06 iahmad-khan

Sorry for the delay. I was on vacation. In regard to your question about having to reinstall, I am not sure offhand. I have not altered the CRD's name or any of the main fields in the fork, so I think a regular upgrade should work. Have you had a chance to try this yet?

cin avatar Jun 12 '23 14:06 cin