Files
harmony/examples/grafana/env.sh
Sylvain Tremblay 7f25007c3b
Some checks failed
Run Check Script / check (pull_request) Failing after 27s
feat(grafana): standalone example + OCP-aware operator install
- Add `examples/grafana` demonstrating a standalone Grafana install via
    the existing helm-chart score, with chart version pinned and an env.sh
  - Add `chart_version` parameter to `grafana_helm_chart_score`
  - Introduce `GrafanaOperatorScore`: composite score that auto-detects
    OpenShift (via `K8sClient::get_k8s_distribution`) and applies the
    `route.openshift.io` ClusterRole/Binding the operator needs before
    running the helm install
  - Make `HelmChartInterpret` idempotent on re-run: if the release is
    already at the requested chart version, warn and skip; if at a
    different version, refuse rather than silently upgrade
  - Hand Route ownership to grafana-operator in `ClusterDashboardsScore`
    by adding `.spec.route` to the Grafana CR and dropping the manual
    Route creation
  - Rename the Grafana-to-Prometheus ServiceAccount from
    `cluster-grafana-sa` to `grafana-prometheus-datasource-sa` to avoid
    a collision with the SA grafana-operator creates for the Grafana pod
2026-04-15 12:45:58 -04:00

6 lines
206 B
Bash

export HARMONY_SECRET_NAMESPACE=example-grafana
export HARMONY_SECRET_STORE=file
export HARMONY_DATABASE_URL=sqlite://harmony_grafana.sqlite
export RUST_LOG=harmony=debug
export HARMONY_USE_LOCAL_K3D=false