Skip to content

Commit

Permalink
Add extraSecrets option to create additional Secrets (#94)
Browse files Browse the repository at this point in the history
* Add extraSecrets option

* generate

* and extraLabels
  • Loading branch information
maboehm authored Sep 12, 2024
1 parent b6c53c9 commit c70baed
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ spec:
networking.gardener.cloud/to-dns: allowed
networking.gardener.cloud/to-public-networks: allowed
networking.resources.gardener.cloud/to-all-shoots-kube-apiserver-tcp-443: allowed
{{ include "labels" . | indent 8 }}
{{- include "labels" . | nindent 8 }}
{{- with .Values.extraLabels }}
{{- . | toYaml | nindent 8}}
{{- end }}
spec:
priorityClassName: gardener-system-900
serviceAccountName: {{ include "name" . }}
Expand Down
18 changes: 18 additions & 0 deletions charts/gardener-extension-shoot-flux/templates/extrasecrets.yaml
Original file line number Diff line number Diff line change
@@ -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 -}}
5 changes: 5 additions & 0 deletions charts/gardener-extension-shoot-flux/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ resources: {}
envFrom: []
extraEnv: []
extraArgs: []
extraSecrets: []
# - name: foo
# data: {}
# stringData: {}

vpa:
enabled: true
resourcePolicy:
Expand Down
2 changes: 1 addition & 1 deletion deploy/extension/base/controller-registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: shoot-flux
type: helm
providerConfig:
chart: H4sIAAAAAAAAA+1bbXPbuBHOZ/4KlJ6b3N2EtCRLcsqZdOqTncRTx6eJ3Ew7NzcZiIQkxBTBAqAcxU1/excAQVH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uh3QTxygvoKn5hUVkwaRTQy839uftDpcSlVKP/1OzoPf8AHwT/p+1l77/7LQP///DXsoXgf8mGVmjpP1MLECjcch1Hr/E4Q2Vxi+t/zBRwc8oQNpikc5S7vLV8BWTPQA1BThO+bZVfejg2MzIAKl8SKfIdAyQym9UHWyQFn385NicO/Trb45N+Js/qFTH+VOeGaMrjgoHdsgYPCGkDyZFUj2Uck1UlQNYphYmPwoDpPzxNcfJ8uFgj4ZO+xe6EUBddV66jlNK7dWc7UIXZ1Y5NVqluSFUyp2ub2XC1PY7muV04wCdqAS/tdnS1s52lhON9eJWwhxF85KTH6CnjacNZ57jpyuajnN0hASRElZf6P/aIO/zBBF/5CNhvzcZzJCOQ80/6YCeloGaGdAx0io+ErF99ctCmPYLllymxTe3gYni58aOumwxb2Kb0TiEJcw4eaG0XCsJ0iMKbOxiSiO1wWIGts/hhDuUQzmUQzmUleW/29QH/wBQAAA=
values:
image:
tag: latest
Expand Down

0 comments on commit c70baed

Please sign in to comment.