Fix publish port on template

This commit is contained in:
disaster37 2017-04-07 15:02:43 +00:00
parent 28cb756ada
commit 5e35b988c1
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ services:
- GOCD_PLUGIN_google-auth=https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v2.3/google-oauth-login-2.3.jar - GOCD_PLUGIN_google-auth=https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v2.3/google-oauth-login-2.3.jar
- GOCD_PLUGIN_github-auth=https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v2.3/github-oauth-login-2.3.jar - GOCD_PLUGIN_github-auth=https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v2.3/github-oauth-login-2.3.jar
{{- end}} {{- end}}
{{- if (ne .Values.DEPLOY_LB "true") and .Values.PUBLISH_PORT and (ne .Values.PUBLISH_PORT "")}} {{- if (ne .Values.DEPLOY_LB "true") and (ne .Values.PUBLISH_PORT "false")}}
ports: ports:
- ${PUBLISH_PORT}:8153 - ${PUBLISH_PORT}:8153
{{- end}} {{- end}}
@ -46,7 +46,7 @@ services:
{{- if eq .Values.DEPLOY_LB "true"}} {{- if eq .Values.DEPLOY_LB "true"}}
lb: lb:
image: rancher/lb-service-haproxy:v0.6.2 image: rancher/lb-service-haproxy:v0.6.2
{{- if .Values.PUBLISH_PORT and (ne .Values.PUBLISH_PORT "")}} {{- if (ne .Values.PUBLISH_PORT "false")}}
ports: ports:
- ${PUBLISH_PORT}:8153/tcp - ${PUBLISH_PORT}:8153/tcp
{{- else}} {{- else}}

View File

@ -93,7 +93,7 @@ catalog:
- "true" - "true"
- "false" - "false"
- variable: "PUBLISH_PORT" - variable: "PUBLISH_PORT"
description: "Set port if you want publish external port for GoCD server or Loadbalancer" description: "Set port if you want publish external port for GoCD server or Loadbalancer. Else set 'false'"
label: "Publish port" label: "Publish port"
required: false required: false
type: "string" type: "string"