Merge pull request #7 from TouchInstinct/fix/starters.origin

fix origin labels
This commit is contained in:
TonCherAmi 2021-06-09 12:33:09 +03:00 committed by GitHub
commit 93e3b5bf03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 4 deletions

View File

@ -76,8 +76,8 @@ Touchin labels
*/}}
{{- define "<CHARTNAME>.touchinLabels" -}}
{{- if .Values.origin.pullRequestNumber }}
touchin.ru/origin: pr:{{ .Values.origin.pullRequestNumber }}
touchin.ru/origin: pr__{{ .Values.origin.pullRequestNumber }}
{{- else if .Values.origin.releaseBranch }}
touchin.ru/origin: release:{{ .Values.origin.releaseBranch }}
touchin.ru/origin: release__{{ .Values.origin.releaseBranch }}
{{- end }}
{{- end }}

View File

@ -40,6 +40,10 @@ securityContext: {}
app:
port: 80
origin:
releaseBranch: ""
pullRequestNumber: ""
service:
type: ClusterIP
port: 80

View File

@ -104,8 +104,8 @@ Touchin labels
*/}}
{{- define "<CHARTNAME>.touchinLabels" -}}
{{- if .Values.origin.pullRequestNumber }}
touchin.ru/origin: pr:{{ .Values.origin.pullRequestNumber }}
touchin.ru/origin: pr__{{ .Values.origin.pullRequestNumber }}
{{- else if .Values.origin.releaseBranch }}
touchin.ru/origin: release:{{ .Values.origin.releaseBranch }}
touchin.ru/origin: release__{{ .Values.origin.releaseBranch }}
{{- end }}
{{- end }}

View File

@ -50,6 +50,10 @@ db:
app:
port: 8080
origin:
releaseBranch: ""
pullRequestNumber: ""
service:
type: ClusterIP
port: 80