From 8962a3c805be6c9f65cec927ae9aaeed79bb6407 Mon Sep 17 00:00:00 2001 From: Llyth <6819575+Llyth@users.noreply.github.com> Date: Fri, 19 Sep 2025 09:36:35 +0200 Subject: [PATCH] feat(charts/capsule-proxy): added extra manifests in values file Signed-off-by: Llyth <6819575+Llyth@users.noreply.github.com> --- charts/capsule-proxy/README.md | 1 + charts/capsule-proxy/ci/extra-values.yaml | 8 ++++++++ charts/capsule-proxy/templates/extra-manifests.yaml | 4 ++++ charts/capsule-proxy/values.schema.json | 4 ++++ charts/capsule-proxy/values.yaml | 9 +++++++++ 5 files changed, 26 insertions(+) create mode 100644 charts/capsule-proxy/ci/extra-values.yaml create mode 100644 charts/capsule-proxy/templates/extra-manifests.yaml diff --git a/charts/capsule-proxy/README.md b/charts/capsule-proxy/README.md index 2e0bcd99..458f53fa 100644 --- a/charts/capsule-proxy/README.md +++ b/charts/capsule-proxy/README.md @@ -136,6 +136,7 @@ If you only need to make minor customizations, you can specify them on the comma | daemonset.hostNetwork | bool | `false` | Use the host network namespace for capsule-proxy pod. | | daemonset.hostPort | bool | `false` | Binding the capsule-proxy listening port to the host port. | | env | list | `[]` | Additional environment variables | +| extraManifests | list | `[]` | Array of additional resources to be created alongside Capsule helm chart | | hostNetwork | bool | `false` | When deployed as DaemonSet use | | image.pullPolicy | string | `"IfNotPresent"` | Set the image pull policy. | | image.registry | string | `"ghcr.io"` | Set the image registry for capsule-proxy | diff --git a/charts/capsule-proxy/ci/extra-values.yaml b/charts/capsule-proxy/ci/extra-values.yaml new file mode 100644 index 00000000..f1c2b7d0 --- /dev/null +++ b/charts/capsule-proxy/ci/extra-values.yaml @@ -0,0 +1,8 @@ +# -- Array of additional resources to be created alongside Capsule helm chart +extraManifests: + - apiVersion: v1 + kind: ConfigMap + metadata: + name: random-config + data: + random-value: "{{ randAlphaNum 16 }}" diff --git a/charts/capsule-proxy/templates/extra-manifests.yaml b/charts/capsule-proxy/templates/extra-manifests.yaml new file mode 100644 index 00000000..567f7bf3 --- /dev/null +++ b/charts/capsule-proxy/templates/extra-manifests.yaml @@ -0,0 +1,4 @@ +{{ range .Values.extraManifests }} +--- +{{ tpl (toYaml .) $ }} +{{ end }} diff --git a/charts/capsule-proxy/values.schema.json b/charts/capsule-proxy/values.schema.json index 07fe4103..87e89797 100644 --- a/charts/capsule-proxy/values.schema.json +++ b/charts/capsule-proxy/values.schema.json @@ -154,6 +154,10 @@ "description": "Additional environment variables", "type": "array" }, + "extraManifests": { + "description": "Array of additional resources to be created alongside Capsule helm chart", + "type": "array" + }, "global": { "type": "object", "properties": { diff --git a/charts/capsule-proxy/values.yaml b/charts/capsule-proxy/values.yaml index c02522d9..c92eb9e2 100644 --- a/charts/capsule-proxy/values.yaml +++ b/charts/capsule-proxy/values.yaml @@ -329,6 +329,15 @@ certManager: rotationPolicy: 'Always' # renewBefore: '24h' +# -- Array of additional resources to be created alongside Capsule helm chart +extraManifests: [] + # - apiVersion: v1 + # kind: ConfigMap + # metadata: + # name: extra-configmap + # data: + # key: value + webhooks: # -- Enable the usage of mutating and validating webhooks enabled: false