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

OZG-7121 helm: Improve route

parent 69e6855b
Branches
Tags
1 merge request!3Resolve "xta-test-server helm-chart mit Deployment und Keystore-Secrets/Certificate-Resources"
Pipeline #1436 skipped
......@@ -2,13 +2,13 @@ kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: {{ .Release.Name }}-passthrough
namespace: by-enable-dev
namespace: {{ include "app.namespace" . }}
spec:
host: {{ .Release.Name }}-passthrough-{{ include "app.baseDomain" . }}
to:
kind: Service
name: xta-test-server
name: {{ .Release.Name }}
weight: 100
port:
targetPort: 8443
......@@ -18,6 +18,6 @@ spec:
status:
ingress:
- host: {{ .Release.Name }}-passthrough-{{ include "app.baseDomain" . }}
routerName: default
routerName: {{ .Values.router.name }}
wildcardPolicy: None
routerCanonicalHostname: router-default.apps.okd.dev.by.ozg-cloud.systems
routerCanonicalHostname: {{ .Values.router.hostname }}
......@@ -29,6 +29,10 @@ image:
name: xta-test-server
tag: latest
router:
name: default
hostname: router-default.apps.okd.dev.by.ozg-cloud.systems
clientCertificateCommonNames:
- clientA
- clientB
......
......@@ -63,6 +63,7 @@ tests:
- equal:
path: spec.dnsNames
value:
- "xta-test-server-release-name-passthrough-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
asserts:
......
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