Skip to content

Commit a88c225

Browse files
committed
fix for ingress (beta)
1 parent 3de5ef6 commit a88c225

File tree

4 files changed

+64
-62
lines changed

4 files changed

+64
-62
lines changed

charts/hub/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: application
1616
# This is the chart version. This version number should be incremented each time you make changes
1717
# to the chart and its templates, including the app version.
1818
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19-
version: 0.54.3
19+
version: 0.55.0
2020

2121
# This is the version number of the application being deployed. This version number should be
2222
# incremented each time you make changes to the application. Versions are not expected to

charts/hub/templates/kerberos-hub/hub-api.yaml

+20-20
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,7 @@ spec:
3939
{{- toYaml . | nindent 8 }}
4040
{{- end }}
4141

42-
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
43-
rules:
44-
- host: "{{ .Values.kerberoshub.api.url }}"
45-
http:
46-
paths:
47-
- path: /
48-
backend:
49-
serviceName: hub-api-svc
50-
servicePort: 8081
51-
{{- if .Values.kerberoshub.api.legacyUrl }}
52-
- host: "{{ .Values.kerberoshub.api.legacyUrl }}"
53-
http:
54-
paths:
55-
- path: /
56-
backend:
57-
serviceName: hub-api-svc
58-
servicePort: 8081
59-
{{- end }}
60-
{{- else }}
42+
{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
6143
rules:
6244
- host: "{{ .Values.kerberoshub.api.url }}"
6345
http:
@@ -91,7 +73,25 @@ spec:
9173
name: hub-api-svc
9274
port:
9375
number: 80
94-
{{- end }}
76+
{{ else }}
77+
rules:
78+
- host: "{{ .Values.kerberoshub.api.url }}"
79+
http:
80+
paths:
81+
- path: /
82+
backend:
83+
serviceName: hub-api-svc
84+
servicePort: 8081
85+
{{- if .Values.kerberoshub.api.legacyUrl }}
86+
- host: "{{ .Values.kerberoshub.api.legacyUrl }}"
87+
http:
88+
paths:
89+
- path: /
90+
backend:
91+
serviceName: hub-api-svc
92+
servicePort: 8081
93+
{{- end }}
94+
{{ end }}
9595
---
9696
apiVersion: apps/v1
9797
kind: Deployment

charts/hub/templates/kerberos-hub/hub-frontend-demo.yaml

+13-11
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,9 @@ spec:
3535
{{- toYaml . | nindent 8 }}
3636
{{- end }}
3737

38-
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
39-
rules:
40-
- host: "{{ .Values.kerberoshub.frontend.demoUrl }}"
41-
http:
42-
paths:
43-
- path: /
44-
backend:
45-
serviceName: hub-frontend-demo-svc
46-
servicePort: 80
47-
{{- else }}
38+
39+
40+
{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
4841
rules:
4942
- host: "{{ .Values.kerberoshub.frontend.demoUrl }}"
5043
http:
@@ -56,7 +49,16 @@ spec:
5649
name: hub-frontend-demo-svc
5750
port:
5851
number: 80
59-
{{- end }}
52+
{{ else }}
53+
rules:
54+
- host: "{{ .Values.kerberoshub.frontend.demoUrl }}"
55+
http:
56+
paths:
57+
- path: /
58+
backend:
59+
serviceName: hub-frontend-demo-svc
60+
servicePort: 80
61+
{{ end }}
6062
---
6163
apiVersion: apps/v1
6264
kind: Deployment

charts/hub/templates/kerberos-hub/hub-frontend.yaml

+30-30
Original file line numberDiff line numberDiff line change
@@ -34,35 +34,7 @@ spec:
3434
tls:
3535
{{- toYaml . | nindent 8 }}
3636
{{- end }}
37-
38-
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
39-
rules:
40-
- host: "{{ .Values.kerberoshub.frontend.url }}"
41-
http:
42-
paths:
43-
- path: /
44-
backend:
45-
serviceName: hub-frontend-svc
46-
servicePort: 80
47-
{{- if .Values.kerberoshub.frontend.legacyUrl }}
48-
- host: "{{ .Values.kerberoshub.frontend.legacyUrl }}"
49-
http:
50-
paths:
51-
- path: /
52-
backend:
53-
serviceName: hub-frontend-svc
54-
servicePort: 80
55-
{{- end }}
56-
{{- range .Values.kerberoshub.frontend.domains }}
57-
- host: "{{ . }}"
58-
http:
59-
paths:
60-
- path: /
61-
backend:
62-
serviceName: hub-frontend-svc
63-
servicePort: 80
64-
{{- end }}
65-
{{- else }}
37+
{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
6638
rules:
6739
- host: "{{ .Values.kerberoshub.frontend.url }}"
6840
http:
@@ -98,7 +70,35 @@ spec:
9870
port:
9971
number: 80
10072
{{- end }}
101-
{{- end }}
73+
74+
{{ else }}
75+
rules:
76+
- host: "{{ .Values.kerberoshub.frontend.url }}"
77+
http:
78+
paths:
79+
- path: /
80+
backend:
81+
serviceName: hub-frontend-svc
82+
servicePort: 80
83+
{{- if .Values.kerberoshub.frontend.legacyUrl }}
84+
- host: "{{ .Values.kerberoshub.frontend.legacyUrl }}"
85+
http:
86+
paths:
87+
- path: /
88+
backend:
89+
serviceName: hub-frontend-svc
90+
servicePort: 80
91+
{{- end }}
92+
{{- range .Values.kerberoshub.frontend.domains }}
93+
- host: "{{ . }}"
94+
http:
95+
paths:
96+
- path: /
97+
backend:
98+
serviceName: hub-frontend-svc
99+
servicePort: 80
100+
{{- end }}
101+
{{ end }}
102102
---
103103
apiVersion: apps/v1
104104
kind: Deployment

0 commit comments

Comments
 (0)