Skip to content

Commit

Permalink
shortlink-common: add support nginx-ingress for canary update
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <batazor111@gmail.com>
  • Loading branch information
batazor committed Jan 7, 2023
1 parent cd3a7ce commit ad310f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file modified ops/Helm/shortlink-api/charts/shortlink-common-0.2.18.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ strategy:
canaryService: {{ include "helpers.fullname" . }}-preview
{{/* dynamicStableScale: true*/}}
{{- toYaml .Values.deploy.strategy.canary | nindent 2 }}
trafficRouting:
{{ if eq .Values.ingress.enabled true }}
{{ if eq .Values.ingress.type "nginx" }}
nginx:
# Reference to an Ingress which has a rule pointing to the stable service (e.g. rollouts-demo-stable)
# This ingress will be cloned with a new name, in order to achieve NGINX traffic splitting.
stableIngress: {{ include "helpers.fullname" . }}
{{ end }}
{{ end }}
{{- else }}
type: RollingUpdate
rollingUpdate:
Expand Down

0 comments on commit ad310f9

Please sign in to comment.