refactor(gitea)!: use admin secret from vault

This commit is contained in:
Khue Doan 2022-02-26 10:43:35 +07:00
parent 693893bcb2
commit 182a2d80b4
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,17 @@
apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
name: {{ .Values.gitea.gitea.admin.existingSecret }}
namespace: {{ .Release.Namespace }}
spec:
secretStoreRef:
name: vault
kind: ClusterSecretStore
target:
template:
data:
username: gitea_admin
data:
- secretKey: password
remoteRef:
key: /gitea/admin-password

View File

@ -15,8 +15,7 @@ gitea:
- *host
gitea:
admin:
# existingSecret: gitea-admin-secret
password: asdfasdfasdf # TODO yes I know this is just for testing
existingSecret: gitea-admin-secret
config:
server:
LANDING_PAGE: explore