From e17a8f335ea7c3050029b738fe303055da1578c5 Mon Sep 17 00:00:00 2001 From: bsctl Date: Tue, 27 Feb 2024 13:25:17 +0100 Subject: [PATCH] fix(chart): add support for extra args Signed-off-by: bsctl --- charts/capsule-proxy/Chart.yaml | 2 +- charts/capsule-proxy/README.md | 1 + charts/capsule-proxy/templates/_pod.tpl | 3 +++ charts/capsule-proxy/values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/capsule-proxy/Chart.yaml b/charts/capsule-proxy/Chart.yaml index 60017174..b262134e 100644 --- a/charts/capsule-proxy/Chart.yaml +++ b/charts/capsule-proxy/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 0.5.0 description: Helm Chart for Capsule Proxy, addon for Capsule, the multi-tenant Operator name: capsule-proxy type: application -version: 0.5.3 +version: 0.5.4 home: https://github.com/projectcapsule/capsule-proxy icon: https://github.com/projectcapsule/capsule/raw/main/assets/logo/capsule_small.png keywords: diff --git a/charts/capsule-proxy/README.md b/charts/capsule-proxy/README.md index 127d827b..cbca1ceb 100644 --- a/charts/capsule-proxy/README.md +++ b/charts/capsule-proxy/README.md @@ -126,6 +126,7 @@ If you only need to make minor customizations, you can specify them on the comma | options.clientConnectionQPS | int | `20` | QPS to use for interacting with Kubernetes API Server. | | options.disableCaching | bool | `false` | Disable the go-client caching to hit directly the Kubernetes API Server, it disables any local caching as the rolebinding reflector | | options.enableSSL | bool | `true` | Specify if capsule-proxy will use SSL | +| options.extraArgs | list | `[]` | A list of extra arguments to add to the capsule-proxy. | | options.generateCertificates | bool | `true` | Specify if capsule-proxy will generate self-signed SSL certificates | | options.ignoredUserGroups | list | `[]` | Define which groups must be ignored while proxying requests | | options.listeningPort | int | `9001` | Set the listening port of the capsule-proxy | diff --git a/charts/capsule-proxy/templates/_pod.tpl b/charts/capsule-proxy/templates/_pod.tpl index beb81a7e..7de583c6 100644 --- a/charts/capsule-proxy/templates/_pod.tpl +++ b/charts/capsule-proxy/templates/_pod.tpl @@ -58,6 +58,9 @@ spec: {{- end }} - --client-connection-qps={{ .Values.options.clientConnectionQPS }} - --client-connection-burst={{ .Values.options.clientConnectionBurst }} + {{- with .Values.options.extraArgs }} + {{- toYaml . | nindent 4 }} + {{- end }} ports: - name: proxy protocol: TCP diff --git a/charts/capsule-proxy/values.yaml b/charts/capsule-proxy/values.yaml index 759e3cee..dff89b64 100644 --- a/charts/capsule-proxy/values.yaml +++ b/charts/capsule-proxy/values.yaml @@ -135,6 +135,8 @@ options: clientConnectionQPS: 20 # -- Burst to use for interacting with kubernetes API Server. clientConnectionBurst: 30 + # -- A list of extra arguments to add to the capsule-proxy. + extraArgs: [] jobs: certs: