🐛 fix secrets

This commit is contained in:
auricom
2023-07-15 09:49:53 +02:00
parent bcc43905d5
commit 1c8e56ab67
2 changed files with 27 additions and 25 deletions

View File

@@ -46,6 +46,6 @@ spec:
- *host - *host
valuesFrom: valuesFrom:
- kind: Secret - kind: Secret
name: weave-gitops name: weave-gitops-secret
valuesKey: adminPassword valuesKey: adminPassword
targetPath: adminUser.passwordHash targetPath: adminUser.passwordHash

View File

@@ -3,28 +3,30 @@
apiVersion: external-secrets.io/v1beta1 apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret kind: ExternalSecret
metadata: metadata:
name: gatus name: gatus
namespace: monitoring namespace: monitoring
spec: spec:
secretStoreRef: secretStoreRef:
kind: ClusterSecretStore kind: ClusterSecretStore
name: onepassword-connect name: onepassword-connect
target: target:
name: gatus-secret name: gatus-secret
creationPolicy: Owner creationPolicy: Owner
template: template:
data: data:
# App # App
CUSTOM_PUSHOVER_APP_TOKEN: '{{ .PUSHOVER_API_TOKEN }}' CUSTOM_PUSHOVER_APP_TOKEN: '{{ .PUSHOVER_API_TOKEN }}'
CUSTOM_PUSHOVER_USER_KEY: '{{ .PUSHOVER_USER_KEY }}' CUSTOM_PUSHOVER_USER_KEY: '{{ .PUSHOVER_USER_KEY }}'
# Postgres Init # Postgres Init
INIT_POSTGRES_DBNAME: gatus INIT_POSTGRES_DBNAME: gatus
INIT_POSTGRES_HOST: postgres-rw.default.svc.cluster.local INIT_POSTGRES_HOST: postgres-rw.default.svc.cluster.local
INIT_POSTGRES_USER: '{{ .POSTGRES_USER }}' INIT_POSTGRES_USER: '{{ .POSTGRES_USER }}'
INIT_POSTGRES_PASS: '{{ .POSTGRES_PASS }}' INIT_POSTGRES_PASS: '{{ .POSTGRES_PASS }}'
INIT_POSTGRES_SUPER_PASS: '{{ .POSTGRES_SUPER_PASS }}' INIT_POSTGRES_SUPER_PASS: '{{ .POSTGRES_SUPER_PASS }}'
dataFrom: dataFrom:
- extract: - extract:
key: pushover key: cloudnative-pg
- extract: - extract:
key: gatus key: pushover
- extract:
key: gatus