From e54afd1593824a0089f429ba8d4ea4bf7a1443bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilson=20J=C3=BAnior?= Date: Mon, 12 Aug 2024 17:53:30 -0300 Subject: [PATCH] tsuru-api: Add support to set apps and jobs on tsuruConfig --- charts/tsuru-api/Chart.yaml | 2 +- charts/tsuru-api/templates/configmap.yaml | 10 ++++++++++ charts/tsuru-api/values.yaml | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/tsuru-api/Chart.yaml b/charts/tsuru-api/Chart.yaml index 62efd21..6d6e993 100644 --- a/charts/tsuru-api/Chart.yaml +++ b/charts/tsuru-api/Chart.yaml @@ -15,7 +15,7 @@ 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.3.1 +version: 0.3.2 # 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 diff --git a/charts/tsuru-api/templates/configmap.yaml b/charts/tsuru-api/templates/configmap.yaml index f0e0d72..46df066 100644 --- a/charts/tsuru-api/templates/configmap.yaml +++ b/charts/tsuru-api/templates/configmap.yaml @@ -169,3 +169,13 @@ data: cors: {{ .Values.tsuruConfig.cors | toYaml | indent 6 }} {{- end }} + + {{ if .Values.tsuruConfig.apps }} + apps: +{{ .Values.tsuruConfig.apps | toYaml | indent 6 }} + {{- end }} + + {{ if .Values.tsuruConfig.jobs }} + jobs: +{{ .Values.tsuruConfig.jobs | toYaml | indent 6 }} + {{- end }} \ No newline at end of file diff --git a/charts/tsuru-api/values.yaml b/charts/tsuru-api/values.yaml index 02ed73e..d1af9cb 100644 --- a/charts/tsuru-api/values.yaml +++ b/charts/tsuru-api/values.yaml @@ -222,6 +222,8 @@ tsuruConfig: cors: {} tag: {} + apps: {} + jobs: {} # http://docs.tsuru.io/en/stable/reference/config.html#provisioner provisioner: ""