From eec48c256999f0fa53ce0f2916f0a2265ef2b4d6 Mon Sep 17 00:00:00 2001 From: devKlausS Date: Tue, 11 Feb 2020 09:10:01 +0100 Subject: [PATCH] [stable/nats] Configure number of connect retries for implicit routes (#20642) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * made number of connect retries for implicit routes configurable Signed-off-by: Klaus Schäffer * fixed connectRetries location and added comment Signed-off-by: Klaus Schäffer * bumped version and set readme Signed-off-by: devKlausS Signed-off-by: Klaus Schäffer * removed trailing slash Signed-off-by: Klaus Schäffer * removed trailing slash Signed-off-by: Klaus Schäffer * Update stable/nats/Chart.yaml Co-Authored-By: Carlos Rodríguez Hernández Signed-off-by: Klaus Schäffer * removed empty line Signed-off-by: Klaus Schäffer Co-authored-by: Carlos Rodríguez Hernández --- stable/nats/Chart.yaml | 2 +- stable/nats/README.md | 1 + stable/nats/templates/configmap.yaml | 5 +++++ stable/nats/values-production.yaml | 4 ++++ stable/nats/values.yaml | 4 ++++ 5 files changed, 15 insertions(+), 1 deletion(-) diff --git a/stable/nats/Chart.yaml b/stable/nats/Chart.yaml index dc3515648d..20a280cae9 100644 --- a/stable/nats/Chart.yaml +++ b/stable/nats/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: nats -version: 4.2.13 +version: 4.3.0 appVersion: 2.1.4 description: An open-source, cloud-native messaging system keywords: diff --git a/stable/nats/README.md b/stable/nats/README.md index cf9b49b151..b8bb2818cb 100644 --- a/stable/nats/README.md +++ b/stable/nats/README.md @@ -108,6 +108,7 @@ The following table lists the configurable parameters of the NATS chart and thei | `cluster.service.nodePort` | Port to bind to for NodePort service type (NATS cluster) | `nil` | | `cluster.service.annotations` | Annotations for NATS cluster service | {} | | `cluster.service.loadBalancerIP` | loadBalancerIP if NATS cluster service type is `LoadBalancer` | `nil` | +| `cluster.connectRetries` | Configure number of connect retries for implicit routes | `nil` | | `monitoring.service.type` | Kubernetes Service type (NATS monitoring) | `ClusterIP` | | `monitoring.service.port` | NATS monitoring port | `8222` | | `monitoring.service.nodePort` | Port to bind to for NodePort service type (NATS monitoring) | `nil` | diff --git a/stable/nats/templates/configmap.yaml b/stable/nats/templates/configmap.yaml index 757a654624..56715b3aea 100644 --- a/stable/nats/templates/configmap.yaml +++ b/stable/nats/templates/configmap.yaml @@ -81,4 +81,9 @@ data: nats://{{ template "nats.fullname" . }}-cluster:{{ .Values.cluster.service.port }} {{- end }} ] + + {{- if .Values.cluster.connectRetries }} + # Configure number of connect retries for implicit routes + connect_retries: {{ .Values.cluster.connectRetries }} + {{- end }} } diff --git a/stable/nats/values-production.yaml b/stable/nats/values-production.yaml index 2ed9c7e316..fafa6ffd34 100644 --- a/stable/nats/values-production.yaml +++ b/stable/nats/values-production.yaml @@ -200,6 +200,10 @@ client: ## ref: https://github.com/nats-io/gnatsd#clustering ## cluster: + ## Use connectRetries to configure number of connect retries for implicit routes, + ## otherwise leave blank + ## + # connectRetries: service: ## Kubernetes service type type: ClusterIP diff --git a/stable/nats/values.yaml b/stable/nats/values.yaml index 735cf64b4e..113e9d4937 100644 --- a/stable/nats/values.yaml +++ b/stable/nats/values.yaml @@ -200,6 +200,10 @@ client: ## ref: https://github.com/nats-io/gnatsd#clustering ## cluster: + ## Use connectRetries to configure number of connect retries for implicit routes, + ## otherwise leave blank + ## + # connectRetries: service: ## Kubernetes service type type: ClusterIP