From 10fca149976941827a233b11bff22c21a6049737 Mon Sep 17 00:00:00 2001 From: Vasyl Saienko Date: Sat, 14 Sep 2024 15:12:40 +0000 Subject: [PATCH] [memcached] Allow to configure additional service parameters Use the following structure in values to define addtional service parameters: Values: network: memcached: service: type: loadBalancer loadBalancerIP: 1.1.1.1 Change-Id: I94c87e530d90f603949ccacbf0602273feec741a --- memcached/Chart.yaml | 2 +- memcached/templates/service.yaml | 1 + memcached/values.yaml | 3 +++ releasenotes/notes/memcached.yaml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/memcached/Chart.yaml b/memcached/Chart.yaml index a7a67a919..8263c2ab3 100644 --- a/memcached/Chart.yaml +++ b/memcached/Chart.yaml @@ -15,6 +15,6 @@ apiVersion: v1 appVersion: v1.5.5 description: OpenStack-Helm Memcached name: memcached -version: 0.1.14 +version: 0.1.15 home: https://github.com/memcached/memcached ... diff --git a/memcached/templates/service.yaml b/memcached/templates/service.yaml index 0280d6388..7c5a28ff1 100644 --- a/memcached/templates/service.yaml +++ b/memcached/templates/service.yaml @@ -30,4 +30,5 @@ spec: {{- end }} selector: {{ tuple $envAll "memcached" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} +{{ .Values.network.memcached | include "helm-toolkit.snippets.service_params" | indent 2 }} {{- end }} diff --git a/memcached/values.yaml b/memcached/values.yaml index c1a4cd0c9..f2e6d8fd2 100644 --- a/memcached/values.yaml +++ b/memcached/values.yaml @@ -103,6 +103,9 @@ endpoints: default: 53 protocol: UDP +network: + memcached: {} + network_policy: memcached: ingress: diff --git a/releasenotes/notes/memcached.yaml b/releasenotes/notes/memcached.yaml index a1edf5e4c..9b3b939af 100644 --- a/releasenotes/notes/memcached.yaml +++ b/releasenotes/notes/memcached.yaml @@ -15,4 +15,5 @@ memcached: - 0.1.12 Added OCI registry authentication - 0.1.13 Replace node-role.kubernetes.io/master with control-plane - 0.1.14 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default + - 0.1.15 Allow to pass additional service parameters ...