Skip to content

Commit 317dad4

Browse files
author
Rafael Porres Molina
authored
Merge pull request #278 from src-d/accept-archive-domains
added blog-archive address
2 parents 1b0ce0f + 5c33713 commit 317dad4

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.helm-production.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
ingress:
22
globalStaticIpName: blog-production
3-
hostname: blog.sourced.tech
3+
hosts:
4+
- blog.sourced.tech
5+
- blog-archive.sourced.tech
46
nodeSelector:
57
cloud.google.com/gke-nodepool: default-pool
68
affinity:

.helm-staging.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
ingress:
22
globalStaticIpName: blog-staging
3-
hostname: blog-staging.srcd.run
3+
hosts:
4+
- blog-staging.srcd.run
5+
- blog-archive-staging.srcd.run
46
nodeSelector:
57
cloud.google.com/gke-nodepool: default-pool
68
affinity:

helm-charts/blog/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: source{d} technical blog
33
name: blog
4-
version: 0.2.0
4+
version: 0.3.0
55
maintainers:
66
- name: Infrastructure team
77

helm-charts/blog/templates/ingress.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@ metadata:
1717

1818
spec:
1919
rules:
20-
- host: {{ required "Hostname is missing" .Values.ingress.hostname }}
20+
{{- range $host := required "Missing .Values.ingress.hosts" .Values.ingress.hosts }}
21+
- host: {{ $host }}
2122
http:
2223
paths:
2324
- path: /*
2425
backend:
2526
serviceName: {{ $serviceName }}
2627
servicePort: {{ $servicePort }}
28+
{{- end }}
2729
tls:
28-
- secretName: {{ .Values.ingress.hostname | replace "." "-" }}-tls
30+
- secretName: "{{ template "fullname" . }}-tls"
2931
hosts:
30-
- {{ .Values.ingress.hostname }}
32+
{{- range $host := required "Missing .Values.ingress.hosts" .Values.ingress.hosts }}
33+
- {{ $host }}
34+
{{- end }}

0 commit comments

Comments
 (0)