khuedoan-homelab/platform/gitea/templates/admin-secret.yaml

21 lines
479 B
YAML

apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: {{ .Values.gitea.gitea.admin.existingSecret }}
namespace: {{ .Release.Namespace }}
spec:
secretStoreRef:
kind: ClusterSecretStore
name: global-secrets
target:
template:
engineVersion: v2
data:
username: gitea_admin
password: {{` "{{ .password }}" `}}
data:
- secretKey: password
remoteRef:
key: gitea.admin
property: password