Skip to content

Commit

Permalink
feat(builder): add git_lock_timeout in values.yml
Browse files Browse the repository at this point in the history
Add git_lock_timeout in values.yml and make the builder-deployment.yaml
use it.

closes #61
  • Loading branch information
robinmonjo authored and Kingdon Barrett committed Feb 1, 2020
1 parent 06ecfa8 commit 5c21be2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion charts/builder/templates/builder-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions charts/builder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5c21be2

Please sign in to comment.