mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-03 12:54:54 +07:00
refactor(gitea)!: use admin secret from vault
This commit is contained in:
parent
693893bcb2
commit
182a2d80b4
17
platform/gitea/templates/admin-secret.yaml
Normal file
17
platform/gitea/templates/admin-secret.yaml
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user