From cb16567c7bc4a6f4a50cf6945506435871334625 Mon Sep 17 00:00:00 2001 From: Satinder Singh Date: Sat, 9 Dec 2023 22:41:56 -0800 Subject: [PATCH] feat: helm support extra containers (#2530) --- manifests/casdoor/Chart.yaml | 4 ++-- manifests/casdoor/templates/deployment.yaml | 3 +++ manifests/casdoor/values.yaml | 7 +++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/manifests/casdoor/Chart.yaml b/manifests/casdoor/Chart.yaml index c92d2b273c8a..298b5fcbfbd3 100644 --- a/manifests/casdoor/Chart.yaml +++ b/manifests/casdoor/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.2.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.16.0" +appVersion: "1.17.0" diff --git a/manifests/casdoor/templates/deployment.yaml b/manifests/casdoor/templates/deployment.yaml index ead07470c26c..030b62ea316d 100644 --- a/manifests/casdoor/templates/deployment.yaml +++ b/manifests/casdoor/templates/deployment.yaml @@ -59,6 +59,9 @@ spec: volumeMounts: - name: config-volume mountPath: /conf + {{ if .Values.extraContainersEnabled }} + {{- .Values.extraContainers | nindent 8 }} + {{- end }} volumes: - name: config-volume projected: diff --git a/manifests/casdoor/values.yaml b/manifests/casdoor/values.yaml index 209e1ea1cccb..5c63e8be04c6 100644 --- a/manifests/casdoor/values.yaml +++ b/manifests/casdoor/values.yaml @@ -108,3 +108,10 @@ nodeSelector: {} tolerations: [] affinity: {} + +# -- Optionally add extra sidecar containers. +extraContainersEnabled: false +extraContainers: "" +# extraContainers: | +# - name: ... +# image: ... \ No newline at end of file