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

ozg-7121 ingress with ssl passthrough

parent 69e6855b
Branches
Tags
1 merge request!3Resolve "xta-test-server helm-chart mit Deployment und Keystore-Secrets/Certificate-Resources"
Pipeline #1439 passed
......@@ -40,5 +40,4 @@ spec:
- key encipherment
- key agreement
dnsNames:
- "{{ .Release.Name }}-passthrough-{{ include "app.baseDomain" . }}"
- "{{ .Release.Name }}-{{ include "app.baseDomain" . }}"
\ No newline at end of file
......@@ -4,7 +4,7 @@ metadata:
name: {{ .Release.Name }}
namespace: {{ include "app.namespace" . }}
annotations:
haproxy-ingress.github.io/ssl-passthrough: "true"
route.openshift.io/termination: passthrough
spec:
{{- if (.Values.ingress).className }}
ingressClassName: {{ .Values.ingress.className }}
......@@ -13,8 +13,8 @@ spec:
- host: "{{ .Release.Name }}-{{ include "app.baseDomain" . }}"
http:
paths:
- path: /
pathType: Prefix
- path: ""
pathType: ImplementationSpecific
backend:
service:
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 @@
suite: test ingress.yaml
release:
name: matabase
name: xta-test-server
namespace: sh-helm-test
templates:
- templates/ingress.yaml
......@@ -41,8 +41,8 @@ tests:
- it: should enable ssl passthrough
asserts:
- equal:
path: metadata.annotations["haproxy-ingress.github.io/ssl-passthrough"]
value: "true"
path: metadata.annotations["route.openshift.io/termination"]
value: "passthrough"
- it: should not create ingress tls/ingressClass by default
asserts:
......@@ -61,11 +61,11 @@ tests:
- equal:
path: spec.rules[0].http.paths[0]
value:
path: /
pathType: Prefix
path: ""
pathType: ImplementationSpecific
backend:
service:
name: matabase
name: xta-test-server
port:
number: 8443
......@@ -73,4 +73,4 @@ tests:
asserts:
- equal:
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