From ca0d8140ac93ea29c265c54f4bdb52b6e1eb96e2 Mon Sep 17 00:00:00 2001 From: Philip Dakowitz Date: Tue, 2 Jul 2024 16:53:40 +0200 Subject: [PATCH 1/2] [sophora-webclient] make service configurable --- charts/sophora-webclient/templates/service.yaml | 14 +++++++++----- charts/sophora-webclient/values.yaml | 4 ++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/charts/sophora-webclient/templates/service.yaml b/charts/sophora-webclient/templates/service.yaml index 1c6cb86..e1a600b 100644 --- a/charts/sophora-webclient/templates/service.yaml +++ b/charts/sophora-webclient/templates/service.yaml @@ -1,11 +1,15 @@ -kind: Service apiVersion: v1 +kind: Service metadata: name: {{ include "webclient.fullname" . }} + labels: + {{- include "webclient.labels" . | nindent 4 }} spec: - selector: {{- include "webclient.selectorLabels" . | nindent 4 }} + type: {{ .Values.service.type }} ports: - - protocol: TCP - port: 8080 - targetPort: 8080 + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP name: http + selector: + {{- include "webclient.selectorLabels" . | nindent 4 }} diff --git a/charts/sophora-webclient/values.yaml b/charts/sophora-webclient/values.yaml index 99eed46..5a900b6 100644 --- a/charts/sophora-webclient/values.yaml +++ b/charts/sophora-webclient/values.yaml @@ -46,6 +46,10 @@ ingress: hosts: annotations: {} +service: + type: ClusterIP + port: 8080 + extraDeploy: [] serviceMonitor: From 67b9a8be8aaea36856c835eda890b817b24580cc Mon Sep 17 00:00:00 2001 From: Philip Dakowitz Date: Tue, 2 Jul 2024 16:54:38 +0200 Subject: [PATCH 2/2] bump chart version --- charts/sophora-webclient/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/sophora-webclient/Chart.yaml b/charts/sophora-webclient/Chart.yaml index a296a86..11450a6 100644 --- a/charts/sophora-webclient/Chart.yaml +++ b/charts/sophora-webclient/Chart.yaml @@ -6,7 +6,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.2.0 +version: 1.2.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to