Skip to content

Commit

Permalink
Add managed secret reference to infiscal
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwatson484 committed Sep 4, 2024
1 parent 76044f0 commit 7ae5175
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions helm-library/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ apiVersion: v2
name: helm-library
description: A Helm library chart
type: library
version: 2.16.0

version: 2.17.0
7 changes: 6 additions & 1 deletion helm-library/templates/_infiscal-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
apiVersion: secrets.infisical.com/v1alpha1
kind: InfisicalSecret
metadata:
name: {{ required (printf $requiredMsg "name") .Values.name }}-infiscal-secret
name: {{ required (printf $requiredMsg "name") .Values.name }}
labels:
{{- include "helm-library.labels" . | nindent 4 }}
spec:
resyncInterval: {{ .Values.secret.resyncInterval | default 10 }}
authentication:
universalAuth:
secretsScope:
Expand All @@ -17,6 +18,10 @@ spec:
credentialsRef:
secretName: {{ .Values.secret.secretName | default "universal-auth-credentials" | quote }}
secretNamespace: {{ .Values.secret.secretNamespace | default "infiscal" | quote }}
managedSecretReference:
secretName: {{ required (printf $requiredMsg "name") .Values.name }}
secretNamespace: {{ required (printf $requiredMsg "namespace") .Values.namespace }}
creationPolicy: {{ .Values.secret.creationPolicy | default "Owner" | quote }}
{{- end }}
{{- define "helm-library.infiscal-secret" -}}
{{- include "helm-library.util.merge" (append . "helm-library.infiscal-secret.tpl") -}}
Expand Down

0 comments on commit 7ae5175

Please sign in to comment.