Repository navigation
Description
Problem or Motivation
On 2026-11-12, Grafana served nothing from about 19:42Z to 20:07Z. #5193 added the image renderer and the Secret monitoring/grafana-image-renderer, which only devops k8s push-secrets (a person, from the keyring) creates. The merge reached the cluster through Argo CD before the Secret existed. The Grafana container reads GF_RENDERING_RENDERER_TOKEN through a required secretKeyRef, so the Grafana pod stopped in CreateContainerConfigError, and the Recreate strategy had already stopped the old pod. A Secret of an optional feature (panel images) took down the whole Grafana service.
Proposed Solution & Architectural Design
- Make the reference of the Grafana container to the renderer token optional (
optional: trueon thesecretKeyRef, through the chart's env values), so Grafana starts without the Secret and only rendering is unavailable. The renderer Deployment keeps its required reference: it has no use without the token. - Add a test of the rendered chart (
helm templatewith the values) that fails when a Grafana container references a Secret of an optional feature withoutoptional: true, and name the optional-feature Secrets in one list next to the cluster Secret table (src/devops_cli/k8s/cluster_secrets.py). - In k8s/README.md "Cluster Secrets": a pull request that adds a Secret reference names the push command as its first line, and the person pushes the Secret before the merge.
Target Subsystem
Grafana manifests (k8s/monitoring/grafana-values.yaml), cluster Secrets.
Existing Tool Considered
The Kubernetes optional field of secretKeyRef and the Grafana Helm chart env values. No new tool.
Acceptance Criteria
-
helm templateof the Grafana chart with the values rendersoptional: trueon the Grafana container's renderer token reference, and the test fails without it. - In a kind or minikube run, or by the rendered manifest and the Kubernetes documented behavior, Grafana starts with the Secret missing and the renderer pod waits.
- k8s/README.md "Cluster Secrets" holds the push-before-merge rule.
Related
Source: #5193
Activity
dan-petty commentedon Nov 12, 2026
Both concern the Grafana image renderer Secret, but #5185 enables the renderer while the candidate makes its token reference optional so Grafana starts without the Secret.test(k8s): import the new names in the call phase for the replay (#5200)
devops-cli-service commentedon Nov 15, 2026
Released in v0.152.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.152.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 12:41 UTC