Skip to content
Snippets Groups Projects
Commit 8c97833e authored by Bastian's avatar Bastian
Browse files

ozg-7121 ingress with ssl passthrough

parent 69e6855b
No related branches found
No related tags found
1 merge request!3Resolve "xta-test-server helm-chart mit Deployment und Keystore-Secrets/Certificate-Resources"
Pipeline #1439 passed
...@@ -40,5 +40,4 @@ spec: ...@@ -40,5 +40,4 @@ spec:
- key encipherment - key encipherment
- key agreement - key agreement
dnsNames: dnsNames:
- "{{ .Release.Name }}-passthrough-{{ include "app.baseDomain" . }}"
- "{{ .Release.Name }}-{{ include "app.baseDomain" . }}" - "{{ .Release.Name }}-{{ include "app.baseDomain" . }}"
\ No newline at end of file
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: {{ .Release.Name }} name: {{ .Release.Name }}
namespace: {{ include "app.namespace" . }} namespace: {{ include "app.namespace" . }}
annotations: annotations:
haproxy-ingress.github.io/ssl-passthrough: "true" route.openshift.io/termination: passthrough
spec: spec:
{{- if (.Values.ingress).className }} {{- if (.Values.ingress).className }}
ingressClassName: {{ .Values.ingress.className }} ingressClassName: {{ .Values.ingress.className }}
...@@ -13,8 +13,8 @@ spec: ...@@ -13,8 +13,8 @@ spec:
- host: "{{ .Release.Name }}-{{ include "app.baseDomain" . }}" - host: "{{ .Release.Name }}-{{ include "app.baseDomain" . }}"
http: http:
paths: paths:
- path: / - path: ""
pathType: Prefix pathType: ImplementationSpecific
backend: backend:
service: service:
name: {{ .Release.Name }} name: {{ .Release.Name }}
......
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: {{ .Release.Name }}-passthrough
namespace: by-enable-dev
spec:
host: {{ .Release.Name }}-passthrough-{{ include "app.baseDomain" . }}
to:
kind: Service
name: xta-test-server
weight: 100
port:
targetPort: 8443
tls:
termination: passthrough
wildcardPolicy: None
status:
ingress:
- host: {{ .Release.Name }}-passthrough-{{ include "app.baseDomain" . }}
routerName: default
wildcardPolicy: None
routerCanonicalHostname: router-default.apps.okd.dev.by.ozg-cloud.systems
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
suite: test ingress.yaml suite: test ingress.yaml
release: release:
name: matabase name: xta-test-server
namespace: sh-helm-test namespace: sh-helm-test
templates: templates:
- templates/ingress.yaml - templates/ingress.yaml
...@@ -41,8 +41,8 @@ tests: ...@@ -41,8 +41,8 @@ tests:
- it: should enable ssl passthrough - it: should enable ssl passthrough
asserts: asserts:
- equal: - equal:
path: metadata.annotations["haproxy-ingress.github.io/ssl-passthrough"] path: metadata.annotations["route.openshift.io/termination"]
value: "true" value: "passthrough"
- it: should not create ingress tls/ingressClass by default - it: should not create ingress tls/ingressClass by default
asserts: asserts:
...@@ -61,11 +61,11 @@ tests: ...@@ -61,11 +61,11 @@ tests:
- equal: - equal:
path: spec.rules[0].http.paths[0] path: spec.rules[0].http.paths[0]
value: value:
path: / path: ""
pathType: Prefix pathType: ImplementationSpecific
backend: backend:
service: service:
name: matabase name: xta-test-server
port: port:
number: 8443 number: 8443
...@@ -73,4 +73,4 @@ tests: ...@@ -73,4 +73,4 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: matabase-helm.test.by.ozg-cloud.de value: xta-test-server-helm.test.by.ozg-cloud.de
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment