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

21 lines
451 B
YAML

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