From 1fcc247d9d1127b1cbec2162f440ba9c1e5fce2c Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Fri, 26 Jul 2024 09:38:50 +0200 Subject: [PATCH 1/2] feat: add support for dual stack clusters Signed-off-by: Ludovic Ortega --- helm/volsync/README.md | 4 ++++ helm/volsync/templates/service-metrics.yaml | 6 ++++++ helm/volsync/values.yaml | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/helm/volsync/README.md b/helm/volsync/README.md index 0e5bb2686..89758f4fc 100644 --- a/helm/volsync/README.md +++ b/helm/volsync/README.md @@ -134,6 +134,10 @@ on the command line or via a custom `values.yaml` file. - Annotations to add to the operator's service account - `serviceAccount.name`: none - Override the name of the operator's ServiceAccount +- `service.ipFamilyPolicy`: (empty) + - Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services) +- `service.ipFamilies`: none + - Sets the families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6. - `podSecurityContext`: none - Allows setting the security context for the operator pod - `podAnnotations`: none diff --git a/helm/volsync/templates/service-metrics.yaml b/helm/volsync/templates/service-metrics.yaml index d31f2a803..4f1873c01 100644 --- a/helm/volsync/templates/service-metrics.yaml +++ b/helm/volsync/templates/service-metrics.yaml @@ -6,6 +6,12 @@ metadata: control-plane: {{ include "volsync.fullname" . }}-controller {{- include "volsync.labels" . | nindent 4 }} spec: + {{- if .Values.service.ipFamilyPolicy }} + ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }} + {{- end }} + {{- if .Values.service.ipFamilies }} + ipFamilies: {{ .Values.service.ipFamilies | toYaml | nindent 2 }} + {{- end }} ports: - name: https port: 8443 diff --git a/helm/volsync/values.yaml b/helm/volsync/values.yaml index 4d258e157..fa2ad44c9 100644 --- a/helm/volsync/values.yaml +++ b/helm/volsync/values.yaml @@ -53,6 +53,12 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: "" +service: + # Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services) + ipFamilyPolicy: "" + # Sets the families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6. + ipFamilies: [] + podAnnotations: {} podLabels: {} From e5abdafef535dc6d9b9b16d843b40eef6eb3e1ec Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Wed, 31 Jul 2024 23:02:19 +0200 Subject: [PATCH 2/2] fix: markdown line length issue Signed-off-by: Ludovic Ortega --- helm/volsync/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/helm/volsync/README.md b/helm/volsync/README.md index 89758f4fc..8c50987e7 100644 --- a/helm/volsync/README.md +++ b/helm/volsync/README.md @@ -135,9 +135,11 @@ on the command line or via a custom `values.yaml` file. - `serviceAccount.name`: none - Override the name of the operator's ServiceAccount - `service.ipFamilyPolicy`: (empty) - - Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services) + - Set the ip family policy to configure dual-stack see + [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services) - `service.ipFamilies`: none - - Sets the families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6. + - Sets the families that should be supported and the order + in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6. - `podSecurityContext`: none - Allows setting the security context for the operator pod - `podAnnotations`: none