2022-02-26 10:43:35 +07:00
|
|
|
apiVersion: external-secrets.io/v1alpha1
|
|
|
|
kind: ExternalSecret
|
|
|
|
metadata:
|
|
|
|
name: {{ .Values.gitea.gitea.admin.existingSecret }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
spec:
|
|
|
|
secretStoreRef:
|
|
|
|
kind: ClusterSecretStore
|
2022-02-26 11:21:34 +07:00
|
|
|
name: vault
|
2022-02-26 10:43:35 +07:00
|
|
|
target:
|
|
|
|
template:
|
2022-02-26 11:46:50 +07:00
|
|
|
engineVersion: v2
|
2022-02-26 10:43:35 +07:00
|
|
|
data:
|
|
|
|
username: gitea_admin
|
2022-02-26 11:42:30 +07:00
|
|
|
password: {{` "{{ .password }}" `}}
|
2022-02-26 10:43:35 +07:00
|
|
|
data:
|
|
|
|
- secretKey: password
|
|
|
|
remoteRef:
|
|
|
|
key: /gitea/admin-password
|
2022-02-26 10:50:20 +07:00
|
|
|
property: value
|