Added ability to add extra hosts for the runners

This commit is contained in:
William Miceli
2019-05-04 14:53:19 -04:00
parent 8ae12b91d6
commit 6d29aa85c0
2 changed files with 15 additions and 3 deletions

View File

@@ -12,9 +12,6 @@ services:
- ${GITLAB_TOKEN} - ${GITLAB_TOKEN}
- --executor - --executor
- "docker" - "docker"
- --docker-image
- docker:latest
- --docker-privileged
{{- if .Values.GITLAB_RUNNER_DESCRIPTION}} {{- if .Values.GITLAB_RUNNER_DESCRIPTION}}
- --description - --description
- ${GITLAB_RUNNER_DESCRIPTION} - ${GITLAB_RUNNER_DESCRIPTION}
@@ -24,6 +21,13 @@ services:
- ${GITLAB_TAGS} - ${GITLAB_TAGS}
{{- end}} {{- end}}
- --locked=false - --locked=false
- --docker-image
- docker:latest
- --docker-privileged
{{- if .Values.GITLAB_IP}}
- --docker-extra-hosts
- ["gitlab:${GITLAB_IP}"]
{{- end}}
{{- if .Values.GITLAB_LINK}} {{- if .Values.GITLAB_LINK}}
external_links: external_links:
- ${GITLAB_LINK}{{- if .Values.GITLAB_LINK_ALIAS}}:${GITLAB_LINK_ALIAS}{{- end}} - ${GITLAB_LINK}{{- if .Values.GITLAB_LINK_ALIAS}}:${GITLAB_LINK_ALIAS}{{- end}}

View File

@@ -66,6 +66,14 @@ catalog:
required: false required: false
type: string type: string
- variable: "GITLAB_IP"
label: "Local GitLab IP"
description: |
(Optional) The local IP address of the GitLab service.
# default: ""
required: false
type: string
- variable: "DATA_DIR" - variable: "DATA_DIR"
label: "Data Directory" label: "Data Directory"
description: | description: |