{{- if .Values.vault.enabled -}} apiVersion: secrets.hashicorp.com/v1beta1 kind: VaultStaticSecret metadata: name: bots-secrets namespace: {{ .Release.Namespace }} labels: {{- include "homelab-gateway.labels" . | nindent 4 }} spec: type: kv-v2 mount: {{ .Values.vault.mount }} path: {{ .Values.vault.path }} destination: name: {{ .Values.secret.name }} create: true refreshAfter: {{ .Values.vault.refreshAfter }} vaultAuthRef: auth {{- end }}