From bd277964b5ee62421fa661721bae0df77b7d798a Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Fri, 22 Sep 2023 16:11:24 +0200 Subject: [PATCH] chore: align version chip Signed-off-by: Frank Jogeleit --- .gitignore | 2 +- charts/kyverno-playground/templates/ingress.yaml | 16 ++++++++++++++++ frontend/src/components/AppBar/AppBar.vue | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 97a196fc..66bdd7c7 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,4 @@ backend/coverage.out backend/dist backend/pkg/server/ui/dist backend/backend -/values.yaml +/values*.yaml diff --git a/charts/kyverno-playground/templates/ingress.yaml b/charts/kyverno-playground/templates/ingress.yaml index 6d485cac..c7d52a2d 100644 --- a/charts/kyverno-playground/templates/ingress.yaml +++ b/charts/kyverno-playground/templates/ingress.yaml @@ -57,5 +57,21 @@ spec: servicePort: {{ $svcPort }} {{- end }} {{- end }} + {{- range .additionalPaths }} + - path: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .pathType }} + {{- end }} + backend: + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ .fullName }} + port: + number: {{ .port }} + {{- else }} + serviceName: {{ .fullName }} + servicePort: {{ .port }} + {{- end }} + {{- end }} {{- end }} {{- end }} diff --git a/frontend/src/components/AppBar/AppBar.vue b/frontend/src/components/AppBar/AppBar.vue index bf2f30e2..bc430886 100644 --- a/frontend/src/components/AppBar/AppBar.vue +++ b/frontend/src/components/AppBar/AppBar.vue @@ -6,7 +6,7 @@