Add secret for grafana oidc

This commit is contained in:
dvirlabs 2025-05-20 00:39:30 +03:00
parent e5680715da
commit e15e42afc1
2 changed files with 20 additions and 2 deletions

View File

@ -23,10 +23,10 @@ spec:
source:
repoURL: https://git.dvirlabs.com/dvirlabs/observability-stack.git
targetRevision: master
path: charts/grafana
path: manifests/grafana
helm:
valueFiles:
- my-values/values-{{env}}.yaml
- ../my-values/{{valuesFile}}
destination:
server: https://kubernetes.default.svc
namespace: monitoring

View File

@ -0,0 +1,18 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: grafana-oidc
namespace: monitoring
spec:
refreshInterval: 1h
secretStoreRef:
name: vault-backend
kind: ClusterSecretStore
target:
name: grafana-oidc-secret
creationPolicy: Owner
data:
- secretKey: client_secret
remoteRef:
key: secret/grafana-oidc
property: client_secret