diff --git a/charts/gardener-extension-shoot-flux/templates/extrasecrets.yaml b/charts/gardener-extension-shoot-flux/templates/extrasecrets.yaml new file mode 100644 index 00000000..a9e3fd2c --- /dev/null +++ b/charts/gardener-extension-shoot-flux/templates/extrasecrets.yaml @@ -0,0 +1,18 @@ +{{- $namespace := .Release.Namespace }} +{{- range $i, $val := .Values.extraSecrets }} +--- +apiVersion: v1 +kind: Secret +metadata: + name: {{ $val.name }} + namespace: {{ $namespace }} +type: Opaque +{{- with $val.data }} +data: +{{- . | toYaml | nindent 2 }} +{{- end }} +{{- with $val.stringData }} +stringData: +{{- . | toYaml | nindent 2 }} +{{- end }} +{{ end -}} diff --git a/charts/gardener-extension-shoot-flux/values.yaml b/charts/gardener-extension-shoot-flux/values.yaml index 2644f59d..e3eda1fa 100644 --- a/charts/gardener-extension-shoot-flux/values.yaml +++ b/charts/gardener-extension-shoot-flux/values.yaml @@ -16,6 +16,11 @@ resources: {} envFrom: [] extraEnv: [] extraArgs: [] +extraSecrets: [] +# - name: foo +# data: {} +# stringData: {} + vpa: enabled: true resourcePolicy: