thanos-community / thanos-operator

WIP: Operator to manage Thanos installation
Apache License 2.0
22 stars 3 forks source link

Ensure ServiceMonitor CRD is present prior to enabling self monitoring on operator #113

Closed coleenquadros closed 1 week ago

coleenquadros commented 3 weeks ago

Following the addition of ServiceMonitor https://github.com/thanos-community/thanos-operator/pull/100 to self monitor the thanos operator deployments, it is expected that the service Monitor CRD should always be present in the cluster as it is enabled by default in the thanos operator. If not, the operator will error as it cannot register the kind. Need to ensure that serviceMonitor installation path only goes through when the CRD is present and not block the operator from runnning