mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-19 01:26:50 +02:00
Added vault secret support to template chart and updated README
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{- define "template.secret" -}}
|
||||
{{- if .Values.secrets }}
|
||||
{{- if and .Values.secrets (not .Values.vault.enabled) }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{{- define "template.vaultSecretsApp" -}}
|
||||
{{- if .Values.vault.enabled }}
|
||||
apiVersion: secrets.hashicorp.com/v1beta1
|
||||
kind: HCPVaultSecretsApp
|
||||
metadata:
|
||||
name: {{ include "template.fullname" . }}
|
||||
namespace: {{ .Values.vault.operatorNamespace | default "vault-secrets-operator-system" }}
|
||||
labels:
|
||||
{{- include "template.labels" . | 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 }}
|
||||
Reference in New Issue
Block a user