Features/Changes
- Upgrade operator to manage different possible GrafanaDashboard apiVersions #49
- New grafana-operator:v5 has added a breaking change by renaming the
GrafanaDashboard
custom resource apiVersion, and introducing a new required CRD field
- This prometheus-exporter-operator:v0.7.0 release makes it optional to set the
GrafanaDashboard
apiVersion to use. Current default value, if not specified in the CR, is the old apiVersion v1alpha1
, since not everybody might already upgraded its grafana-operator version to v5
- In future releases of prometheus-exporter-operator , the default value will be updated to new apiVersion
v1beta1
- If for any reason you have already upgraded your grafana-operator version to
v5
, then you need to add to your CRs the new CRD field grafanaDashboard.apiVersion=v1beta1
apiVersion: monitoring.3scale.net/v1alpha1
kind: PrometheusExporter
metadata:
name: example-memcached
spec:
type: memcached
grafanaDashboard:
label:
key: autodiscovery
value: enabled
apiVersion: v1beta1 ### This one
dbHost: your-memcached-host
dbPort: 11211