2023-12-04 15:40:08 +00:00
|
|
|
---
|
2023-12-04 15:43:57 +00:00
|
|
|
{{- if .Values.config.csiSecretsStore -}}
|
2023-12-04 15:40:08 +00:00
|
|
|
apiVersion: secrets-store.csi.x-k8s.io/v1
|
|
|
|
kind: SecretProviderClass
|
|
|
|
metadata:
|
|
|
|
name: app-secrets
|
|
|
|
spec:
|
|
|
|
provider: {{ .Values.wireguard.config.csiSecretsStore.providerName | default "1password" }}
|
|
|
|
parameters:
|
|
|
|
secrets: |
|
|
|
|
- resourceName: {{ .Values.wireguard.config.csiSecretsStore.resourceName | default "https://my.1password.eu/vaults/3oh5jxmxvqvpuimu2lbuajtizi/allitems/nyamadlgfac4pmce4uexrhtuju/notes" }}
|
|
|
|
path: "config"
|
|
|
|
{{- end -}}
|