3scale-ops / prometheus-exporter-operator

Operator to centralize the setup of 3rd party prometheus exporters on Kubernetes/OpenShift, with a collection of grafana dashboards
Apache License 2.0
43 stars 15 forks source link

Feat/Update prometheus-exporter-operator to manage possible different GrafanaDashboard apiVersions #49

Closed slopezz closed 1 year ago

slopezz commented 1 year ago

On https://github.com/3scale-ops/prometheus-exporter-operator/issues/48 it was reported a bug which made the operator to fail on the management of the GrafanaDashboard custom resource, due to using an old API.

It seems there is an API change on grafana-operator v5.0.0 from June 2023 https://github.com/grafana-operator/grafana-operator/releases/tag/v5.0.0

According to the migration docs https://github.com/grafana-operator/grafana-operator/blob/master/docs/blog/v4-v5-migration.md, it affects to prometheus-exporter-operator on 2 places:

So the operator has been adapted to have the 2 possible GrafanaDashboard apiVersions, since there is a breaking change at grafana-operator level, and it is really possible that not everybody have updated yet to newer grafana-operator v5.0.0:

/kind bug /kind feature /priority important-soon /assign

3scale-robot commented 1 year ago

LGTM label has been added.

Git tree hash: 78c8cc12e94b6ff462a09f49afc5f88f8b3c7f4d

slopezz commented 1 year ago

/approve

3scale-robot commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: slopezz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/3scale-ops/prometheus-exporter-operator/blob/main/OWNERS)~~ [slopezz] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment