diff --git a/charts/builder/templates/builder-deployment.yaml b/charts/builder/templates/builder-deployment.yaml index d5ea4a0..6a02837 100644 --- a/charts/builder/templates/builder-deployment.yaml +++ b/charts/builder/templates/builder-deployment.yaml @@ -57,9 +57,12 @@ spec: value: "{{ .Values.global.registry_location }}" - name: "DEIS_REGISTRY_SECRET_PREFIX" value: "{{ .Values.global.secret_prefix }}" - # Set GIT_LOCK_TIMEOUT to number of minutes you want to wait to git push again to the same repository - name: "GIT_LOCK_TIMEOUT" +{{- if (.Values.git_lock_timeout) }} + value: "{{ .Values.git_lock_timeout }}" +{{- else }} value: "10" +{{- end }} - name: "SLUGBUILDER_IMAGE_NAME" valueFrom: configMapKeyRef: diff --git a/charts/builder/values.yaml b/charts/builder/values.yaml index c2c5f4f..c17fd7a 100644 --- a/charts/builder/values.yaml +++ b/charts/builder/values.yaml @@ -4,6 +4,7 @@ docker_tag: canary # limits_cpu: "100m" # limits_memory: "50Mi" # builder_pod_node_selector: "disk:ssd" +# git_lock_timeout: 10 # number of minutes you want to wait to git push again to the same repository (default 10) global: # Experimental feature to toggle using kubernetes ingress instead of the Deis router.