mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
23 lines
722 B
YAML
23 lines
722 B
YAML
{{- define "template.vaultSecretsApp" -}}
|
|
{{- if .Values.vault.enabled }}
|
|
apiVersion: secrets.hashicorp.com/v1beta1
|
|
kind: HCPVaultSecretsApp
|
|
metadata:
|
|
name: {{ include "template.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "template.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- include "template.annotations" . | nindent 4 }}
|
|
spec:
|
|
appName: {{ .Values.vault.applicationName }}
|
|
hcpAuthRef: {{ .Values.vault.operatorNamespace | default "vault-secrets-operator-system" }}/hcp-auth
|
|
destination:
|
|
create: true
|
|
labels:
|
|
{{- include "template.labels" . | nindent 6 }}
|
|
hvs: "true"
|
|
name: {{ include "template.fullname" . }}
|
|
refreshAfter: 1h
|
|
{{- end }}
|
|
{{- end }} |