~xdavidwu/flux

0000d074f53ca4aeee018cb3dc92ea213e4d0711 — Pinghao Wu a month ago 0556091
operators: add grafana-operator
2 files changed, 47 insertions(+), 0 deletions(-)

M clusters/egloga/flux-system/sync.yaml
A operators/grafana-operator.yaml
M clusters/egloga/flux-system/sync.yaml => clusters/egloga/flux-system/sync.yaml +13 -0
@@ 24,3 24,16 @@ spec:
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: operators
  namespace: flux-system
spec:
  interval: 1h0m0s
  path: ./operators
  prune: true
  sourceRef:
    kind: GitRepository
    name: flux-system

A operators/grafana-operator.yaml => operators/grafana-operator.yaml +34 -0
@@ 0,0 1,34 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: grafana-operator
  namespace: flux-system
spec:
  chart:
    spec:
      chart: grafana-operator
      reconcileStrategy: ChartVersion
      sourceRef:
        kind: HelmRepository
        name: bitnami
      version: ^4.9.0
  install:
    crds: Create
    createNamespace: true
  interval: 1h0m0s
  targetNamespace: grafana
  upgrade:
    crds: CreateReplace
  values:
    operator:
      podSecurityContext:
        # TODO fix cluster compatibility about ids w/ user namespacing
        fsGroup: null
      containerSecurityContext:
        # explicitly set it sets mounterArgs.FsUser, and make token 600
        runAsUser: null
    grafana:
      image:
        # TODO remove once upstream updated to one not yet trimmed
        tag: "11"