Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
fix pipeline.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Nov 15, 2019
1 parent f15328a commit 06a961e
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions .banzaicloud/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,31 +92,30 @@ pipeline:
timeout: 900
values:
nameOverride: '{{ .CICD_REPO_NAME }}'
application:
image:
{{{{- if .pipeline.build_image.enabled }}}}
repository: '{{ .CICD_REPO }}'
tag: '{{ trunc 7 .CICD_COMMIT_SHA }}'
{{{{- end }}}}
pullPolicy: Always
config:
opencensus:
prometheus:
enabled: true
{{{{- if .platform.AutoDNSEnabled }}}}
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/redirect-regex: ^http://(.*)
traefik.ingress.kubernetes.io/redirect-replacement: https://$1
traefik.ingress.kubernetes.io/redirect-permanent: "true"
hosts:
- 'app-{{ .CICD_REPO_NAME }}.{{ .CLUSTER_NAME }}.{{ .ORG_NAME }}.{{ .DOMAIN_NAME }}'
{{{{ else }}}}
service:
type: LoadBalancer
image:
{{{{- if .pipeline.build_image.enabled }}}}
repository: '{{ .CICD_REPO }}'
tag: '{{ trunc 7 .CICD_COMMIT_SHA }}'
{{{{- end }}}}
pullPolicy: Always
config:
opencensus:
prometheus:
enabled: true
{{{{- if .platform.AutoDNSEnabled }}}}
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/redirect-regex: ^http://(.*)
traefik.ingress.kubernetes.io/redirect-replacement: https://$1
traefik.ingress.kubernetes.io/redirect-permanent: "true"
hosts:
- 'app-{{ .CICD_REPO_NAME }}.{{ .CLUSTER_NAME }}.{{ .ORG_NAME }}.{{ .DOMAIN_NAME }}'
{{{{ else }}}}
service:
type: LoadBalancer
{{{{- end }}}}

mysql:
existingSecret: '{{ .CICD_REPO_NAME }}-mysql'
Expand Down

0 comments on commit 06a961e

Please sign in to comment.