From d7fe2fa2e22f174301bb337a9dfaa8d1f26cf930 Mon Sep 17 00:00:00 2001 From: Michael Richardson Date: Thu, 16 Mar 2023 16:47:50 +1000 Subject: [PATCH] Allow supplying task cap Closes https://github.com/OctopusDeploy/helm-charts/issues/1 --- charts/octopus-deploy/templates/statefulset.yaml | 4 ++++ charts/octopus-deploy/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/charts/octopus-deploy/templates/statefulset.yaml b/charts/octopus-deploy/templates/statefulset.yaml index 42ef8dd7..37361494 100644 --- a/charts/octopus-deploy/templates/statefulset.yaml +++ b/charts/octopus-deploy/templates/statefulset.yaml @@ -99,6 +99,10 @@ spec: {{- if not .Values.octopus.enableDockerInDocker }} - name: DISABLE_DIND value: !!str "Y" + {{- end }} + {{- if .Values.octopus.taskCap }} + - name: TASK_CAP + value: {{.Values.octopus.taskCap}} {{- end }} - name: OCTOPUS_INSTALLED_VIA_HELM value: "true" diff --git a/charts/octopus-deploy/values.yaml b/charts/octopus-deploy/values.yaml index 9e91597f..7e2d67db 100644 --- a/charts/octopus-deploy/values.yaml +++ b/charts/octopus-deploy/values.yaml @@ -24,6 +24,9 @@ octopus: tentaclePort: 10943 # The number of server nodes to maintain replicaCount: 1 + # The Task Cap for the created nodes https://octopus.com/docs/support/increase-the-octopus-server-task-cap + # Defaults to 5 + taskCap: # The built in worker can use execution containers to run steps inside special Docker images. # https://octopus.com/docs/deployment-process/execution-containers-for-workers. # This requires supporting Docker in Docker, which in turn means the Octopus image must be run with