Welcome to release 5.21.0 of the Grafana Operator!
It mainly includes bug fixes but also some cool new features (like kubernetes-native JWT authentication, HTTPRoute support or more flexible date parsing in alert rule groups).
We also made some changes to the helm chart. One minor change is that we removed the v prefix from our chart versions which should hopefully simplify OCI installations. We also aligned the image.repository value with other Grafana helm charts which might cause issues. More details can be found in the next section.
Breaking changes to the helm chart
If you've been using the image.repository field to change the image, this field has been split into registry and repository to align with the rest of the Grafana helm charts.
To migrate any custom values to this new format, follow this example:
If your you'll need to replace it with this:
Migration example
values.yaml contained this:
image:
repository: example.com/my-custom/grafana-operator
image:
registry: example.com
repository: my-custom/grafana-operator
values.yaml, you can safely ignore this.
Upgrade instructions
Using Helm
# Upgrade the operator image & deployment
helm upgrade -i grafana-operator oci://ghcr.io/grafana/helm-charts/grafana-operator --version 5.21.0
# Upgrading CRDs
kubectl apply --server-side --force-conflicts -f https://github.com/grafana/grafana-operator/releases/download/v5.21.0/crds.yamlUsing kubectl
# Namespace Scope
kubectl replace -f https://github.com/grafana/grafana-operator/releases/download/v5.21.0/kustomize-namespace_scoped.yaml
# Cluster Scope
kubectl replace -f https://github.com/grafana/grafana-operator/releases/download/v5.21.0/kustomize-cluster_scoped.yaml Using kustomize
flux pull artifact oci://ghcr.io/grafana/kustomize/grafana-operator:v5.21.0 --output ./grafana-operator/Using OLM
Releases are published to operatorhub.io as well as the OpenShift Operator Catalog. Depending on the installation, existing installations will either upgrade automatically or require approval from an administrator.
What's Changed
Features
- feat(Grafana): K8s serviceaccount token as authorization
.spec.client.useKubeAuthby @Baarsgaard in #2137 - feat: add active_time_intervals to nfpolicy by @eyazici90 in #2223
- feat(Helm): Adding values for extra volumes and custom probes by @npapapietro in #2251
- feat(Helm): Allow enabling/disabling user namespaces by @Baarsgaard in #2252
- feat(Helm): Allow to define deployment's annotations by @wilfriedroset in #2261
- feat(ContactPoint): Allow multiple receivers in spec by @Baarsgaard in #2249
- feat(ContactPoint): Allow setting editable at creation by @Baarsgaard in #2250
- feat(AlertRuleGroup): Support
dandwinforduration strings by @vignesh-codes in #2269 - feat: HTTP Route Support by @theSuess in #2293
- Align helm values for registry with other grafana charts by @npapapietro in #2324
Fixes
- fix: Allow multiple sharded instances to be hosted in one namespace with leader election by @Baarsgaard in #2265
- fix(Annotations): Panic when applying annotations and map is nil by @Baarsgaard in #2278
- fix(AlertRuleGroup):
.spec.editablecannot be be disabled by @Miguel-Barros96 in #2276 - fix(grafana): track events for all owned resources by @weisdd in #2299
- fix(grafana): delete dangling ingress by @weisdd in #2298
- fix(grafana): delete dangling route by @weisdd in #2301
- fix(controllers): reflect changes in library panels by @weisdd in #2320
- Update weekly sync link by @theSuess in #2344
- fix(Grafana):
CreateContainerConfigErrorwithdisableDefaultAdminSecretand admin secret missing by @Baarsgaard in #2356 - fix(useKubeAuth): Require separate ServiceAccount token without K8s permissions by @Baarsgaard in #2371
- fix(Release): Remove
vprefix from Helm Chart version by @Baarsgaard in #2377 - fix(controllers): reconcile drifted dashboards by @weisdd in #2381
Dependencies
- chore(deps): bump sigstore/cosign-installer from 3.10.0 to 4.0.0 by @dependabot[bot] in #2224
- fix(deps): update github.com/grafana/grafana-openapi-client-go digest to d92957c by @renovate-sh-app[bot] in #2228
- fix(deps): update github.com/openshift/api digest to 8c9acca by @renovate-sh-app[bot] in #2229
- fix(deps): update k8s.io/utils digest to bc988d5 by @renovate-sh-app[bot] in #2230
New Contributors
- @renovate-sh-app[bot] made their first contribution in #2228
- @npapapietro made their first contribution in #2251
- @Miguel-Barros96 made their first contribution in #2276
- @mmmommm made their first contribution in #2297
Full Changelog: v5.20.0...v5.21.0