From f0d68d5ad7e92858c66412752ed6daa14e6da5a3 Mon Sep 17 00:00:00 2001 From: manojsaikumar Date: Mon, 15 Jul 2024 16:38:03 +0530 Subject: [PATCH 1/3] removed pemsize --- .github/workflows/release.yaml | 1 + helm/dashboard-backend/Chart.yaml | 2 +- helm/dashboard-backend/templates/deployment.yaml | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e8b9245d..fe126b6a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,6 +3,7 @@ on: push: branches: - main + - release-0.20.4 paths: - 'helm/**' release: diff --git a/helm/dashboard-backend/Chart.yaml b/helm/dashboard-backend/Chart.yaml index 7028593e..ea12ce2e 100644 --- a/helm/dashboard-backend/Chart.yaml +++ b/helm/dashboard-backend/Chart.yaml @@ -7,4 +7,4 @@ maintainers: - name: satish - name: ojasvi name: dashboard-backend -version: "0.20.4" +version: "0.20.5" diff --git a/helm/dashboard-backend/templates/deployment.yaml b/helm/dashboard-backend/templates/deployment.yaml index 5d0c49bf..a3b84858 100644 --- a/helm/dashboard-backend/templates/deployment.yaml +++ b/helm/dashboard-backend/templates/deployment.yaml @@ -49,8 +49,8 @@ spec: args: - -Xms512m - -Xmx3024m - - -XX:PermSize=64m - - -XX:MaxPermSize=500m + - -XX:MetaspaceSize=64m + - -XX:MaxMetaspaceSize=500m - -Xss1024k - -jar - blotout-0.0.1.jar From da4a7d3e7ed589e87f029cb66616676420524c51 Mon Sep 17 00:00:00 2001 From: manojsaikumar Date: Mon, 29 Jul 2024 19:19:06 +0530 Subject: [PATCH 2/3] change in ingress class --- helm/dashboard-backend/templates/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/dashboard-backend/templates/ingress.yaml b/helm/dashboard-backend/templates/ingress.yaml index 1e73984e..9d1cc728 100644 --- a/helm/dashboard-backend/templates/ingress.yaml +++ b/helm/dashboard-backend/templates/ingress.yaml @@ -3,7 +3,7 @@ {{- $servicePort := .Values.service.containerPort -}} {{- $paths := .Values.ingress.paths -}} {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 {{ else }} apiVersion: extensions/v1beta1 {{ end -}} From 9d1548673c69274fdf7cafb887d93ffc30672ec9 Mon Sep 17 00:00:00 2001 From: manojsaikumar Date: Mon, 29 Jul 2024 21:02:36 +0530 Subject: [PATCH 3/3] added pathtype --- helm/dashboard-backend/templates/ingress.yaml | 22 +++++++++++++------ helm/dashboard-backend/values.yaml | 7 +++--- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/helm/dashboard-backend/templates/ingress.yaml b/helm/dashboard-backend/templates/ingress.yaml index 9d1cc728..e628109d 100644 --- a/helm/dashboard-backend/templates/ingress.yaml +++ b/helm/dashboard-backend/templates/ingress.yaml @@ -31,16 +31,24 @@ metadata: {{- end }} spec: rules: - {{- if .Values.ingress.hosts }} - {{- range $host := .Values.ingress.hosts }} - - host: {{ $host }} + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} http: paths: - {{- range $p := $paths }} - - path: {{ $p}} + {{- range .paths }} + - path: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: ImplementationSpecific + {{- end }} backend: - serviceName: {{ $serviceName }} - servicePort: {{ $servicePort }} + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} + {{- else }} + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} {{- end -}} {{- end -}} {{- end -}} diff --git a/helm/dashboard-backend/values.yaml b/helm/dashboard-backend/values.yaml index 079ffb8e..fa8135f1 100644 --- a/helm/dashboard-backend/values.yaml +++ b/helm/dashboard-backend/values.yaml @@ -55,9 +55,10 @@ ingress: annotations: {} labels: {} hosts: - - example.com - paths: - - / + - host: chart-example.local + paths: + - path: / + pathType: ImplementationSpecific # swagger ingress swagger: enabled: false