Skip to content

Commit 047e75c

Browse files
authored
Added change-preview-url (#30)
* Added change-preview-rul * Added change-preview-url
1 parent d593bd6 commit 047e75c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

deploy/releases/app.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,17 @@ releases:
7979
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
8080
alb.ingress.kubernetes.io/ssl-redirect: "443"
8181
alb.ingress.kubernetes.io/target-type: ip
82+
{{- if eq .Environment.Name "preview" }}
83+
external-dns.alpha.kubernetes.io/hostname: example-app-pr-{{ .Namespace }}.{{ .Values.platform.default_ingress_domain }}
84+
outputs.platform.cloudposse.com/webapp-url: "https://example-app-pr-{{ .Namespace }}.{{ .Values.platform.default_ingress_domain }}/dashboard"
85+
hosts:
86+
"example-app-pr-{{ .Namespace }}.{{ .Values.platform.default_ingress_domain }}": /*
87+
{{- else }}
8288
external-dns.alpha.kubernetes.io/hostname: example-app.{{ .Values.platform.default_ingress_domain }}
8389
outputs.platform.cloudposse.com/webapp-url: "https://example-app.{{ .Values.platform.default_ingress_domain }}/dashboard"
8490
hosts:
8591
"example-app.{{ .Values.platform.default_ingress_domain }}": /*
92+
{{- end }}
8693

8794
probes:
8895
# Probe that ensures service is healthy

0 commit comments

Comments
 (0)