Skip to content

Commit

Permalink
Add BitwardenSyncSecret support to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
jkupferer committed Jul 26, 2024
1 parent 9d0b76e commit ff181ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions helm/replik8s/templates/kubeConfigs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
{{- range $name, $kubeConfig := .Values.kubeConfigs }}
{{- if (and (ne (typeOf $kubeConfig) "string") $kubeConfig.bitwardenSecret) -}}
---
apiVersion: bitwarden-k8s-secrets-manager.demo.redhat.com/v1
kind: BitwardenSyncSecret
metadata:
name: {{ $name }}
spec:
data:
kubeconfig.yaml:
secret: {{ $kubeConfig.bitwardenSecret }}
{{- else }}
---
apiVersion: v1
kind: Secret
Expand All @@ -14,3 +25,4 @@ data:
{{- $kubeConfig | toYaml | b64enc -}}
{{ end }}
{{- end }}
{{- end }}

0 comments on commit ff181ab

Please sign in to comment.