diff --git a/src/main/helm/templates/ingress.yaml b/src/main/helm/templates/ingress.yaml index b82457c910dd8cc9a20d8f0b71ff39a441b1e0c9..6a876471e85a2b1361311f1dc1c43f348eb8ddb3 100644 --- a/src/main/helm/templates/ingress.yaml +++ b/src/main/helm/templates/ingress.yaml @@ -50,7 +50,7 @@ spec: port: number: 8080 name: {{ .Release.Name }} - path: '' + path: '/api' pathType: ImplementationSpecific host: {{ include "app.baseDomain" . }} tls: diff --git a/src/test/helm/ingress_nginx_test.yaml b/src/test/helm/ingress_nginx_test.yaml index 815ca9460ee325240c36784dc4fa76d5ec865875..7e9fb9941c724807006c104128eea518a2d09994 100644 --- a/src/test/helm/ingress_nginx_test.yaml +++ b/src/test/helm/ingress_nginx_test.yaml @@ -117,4 +117,16 @@ tests: asserts: - equal: path: spec.tls[0].hosts[0] - value: helm.test.by.ozg-cloud.de \ No newline at end of file + value: helm.test.by.ozg-cloud.de + - it: should create rules correctly + asserts: + - equal: + path: spec.rules[0].http.paths[0] + value: + path: /api + pathType: ImplementationSpecific + backend: + service: + name: alfa + port: + number: 8080 \ No newline at end of file