Skip to content
Snippets Groups Projects
Commit fb833815 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

Merge remote-tracking branch 'codesh/OZG-7121-ssl-passthrough' into...

Merge remote-tracking branch 'codesh/OZG-7121-ssl-passthrough' into 2-OZG-7121-KOP-2850-Dev-Deployment
parents b50ebda4 8c97833e
Branches
Tags
1 merge request!3Resolve "xta-test-server helm-chart mit Deployment und Keystore-Secrets/Certificate-Resources"
Pipeline #1441 skipped
...@@ -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: {{ include "app.namespace" . }}
spec:
host: {{ .Release.Name }}-passthrough-{{ include "app.baseDomain" . }}
to:
kind: Service
name: {{ .Release.Name }}
weight: 100
port:
targetPort: 8443
tls:
termination: passthrough
wildcardPolicy: None
status:
ingress:
- host: {{ .Release.Name }}-passthrough-{{ include "app.baseDomain" . }}
routerName: {{ .Values.router.name }}
wildcardPolicy: None
routerCanonicalHostname: {{ .Values.router.hostname }}
...@@ -63,7 +63,6 @@ tests: ...@@ -63,7 +63,6 @@ tests:
- equal: - equal:
path: spec.dnsNames path: spec.dnsNames
value: value:
- "xta-test-server-release-name-passthrough-helm.test.by.ozg-cloud.de"
- "xta-test-server-release-name-helm.test.by.ozg-cloud.de" - "xta-test-server-release-name-helm.test.by.ozg-cloud.de"
- it: should contain default lables and component lables - it: should contain default lables and component lables
asserts: asserts:
......
...@@ -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
suite: test route.yaml
release:
name: releasename
namespace: sh-helm-test
templates:
- templates/route.yaml
set:
ozgcloud:
bezeichner: helm
baseUrl: test.by.ozg-cloud.de
tests:
- it: check route kind
asserts:
- isKind:
of: Route
- it: should set passthrough hostname
asserts:
- equal:
path: spec.host
value: releasename-passthrough-helm.test.by.ozg-cloud.de
- it: should set service name
asserts:
- equal:
path: spec.to.name
value: releasename
- it: should set target port
asserts:
- equal:
path: spec.port.targetPort
value: 8443
- it: should set passthrough tls termination
asserts:
- equal:
path: spec.tls.termination
value: passthrough
- it: should set ingress passthrough hostname
asserts:
- equal:
path: status.ingress[0].host
value: releasename-passthrough-helm.test.by.ozg-cloud.de
- it: should set router name
asserts:
- equal:
path: status.ingress[0].routerName
value: default
- it: should set router hostname
asserts:
- equal:
path: status.ingress[0].routerCanonicalHostname
value: router-default.apps.okd.dev.by.ozg-cloud.systems
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment