From 0815dd876cfdac2bff9f8b1fc774a23cdda26b6c Mon Sep 17 00:00:00 2001 From: Arsham Teymouri Date: Wed, 8 Oct 2025 12:53:15 +0200 Subject: [PATCH 1/2] [common] feature add - ClusterIP for service manifest --- charts/common/Chart.yaml | 2 +- charts/common/templates/service.yaml | 3 +++ charts/common/values.yaml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index 6c3e296..b0a8423 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: common description: A generic helm chart for Kubernetes type: application -version: 0.11.1 +version: 0.12.0 maintainers: - name: Parity url: https://github.com/paritytech/helm-charts diff --git a/charts/common/templates/service.yaml b/charts/common/templates/service.yaml index afe2dad..3ca95fd 100644 --- a/charts/common/templates/service.yaml +++ b/charts/common/templates/service.yaml @@ -11,6 +11,9 @@ metadata: {{- end }} spec: type: {{ .Values.service.type }} + {{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }} + clusterIP: {{ .Values.service.clusterIP }} + {{- end }} {{- if .Values.service.sessionAffinity }} sessionAffinity: {{ .Values.service.sessionAffinity }} {{- end }} diff --git a/charts/common/values.yaml b/charts/common/values.yaml index 1809ead..2621ac6 100644 --- a/charts/common/values.yaml +++ b/charts/common/values.yaml @@ -112,6 +112,8 @@ service: annotations: {} # -- Service type type: ClusterIP + # -- Headless service + clusterIP: "" # -- Session Affinitiy type sessionAffinity: "" # -- Ports to expose on the service From 19c90fe667ec976283d135d5128c1210b2dc8516 Mon Sep 17 00:00:00 2001 From: Arsham Teymouri Date: Wed, 8 Oct 2025 12:56:02 +0200 Subject: [PATCH 2/2] add helm docs --- charts/common/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/common/README.md b/charts/common/README.md index d341997..847beb9 100644 --- a/charts/common/README.md +++ b/charts/common/README.md @@ -69,8 +69,9 @@ This is intended behaviour. Make sure to run `git add -A` once again to stage ch | replicaCount | int | `1` | Number of replicas for the pod | | resources | object | `{}` | Resource limits & requests | | secrets | object | `{}` | Creates a secret resource The value must be base64 encoded | -| service | object | `{"annotations":{},"ports":[],"sessionAffinity":"","type":"ClusterIP"}` | Creates a service resource | +| service | object | `{"annotations":{},"clusterIP":"","ports":[],"sessionAffinity":"","type":"ClusterIP"}` | Creates a service resource | | service.annotations | object | `{}` | Annotations to add to the Service resource | +| service.clusterIP | string | `""` | Headless service | | service.ports | list | `[]` | Ports to expose on the service | | service.sessionAffinity | string | `""` | Session Affinitiy type | | service.type | string | `"ClusterIP"` | Service type |