From fffa07e9b9f0b8a2a425a1e343ef7db2031eb008 Mon Sep 17 00:00:00 2001 From: Matt Cholick Date: Sat, 10 Mar 2018 15:21:10 -0500 Subject: [PATCH] [stable/cockroachdb] Add config for public service type (#4100) * [stable/cockroachdb] Add config for public service type * [stable/cockroachdb] Increment chart version --- stable/cockroachdb/Chart.yaml | 2 +- stable/cockroachdb/README.md | 1 + stable/cockroachdb/templates/cockroachdb-statefulset.yaml | 1 + stable/cockroachdb/values.yaml | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stable/cockroachdb/Chart.yaml b/stable/cockroachdb/Chart.yaml index ffe473e6f1..afa9077320 100755 --- a/stable/cockroachdb/Chart.yaml +++ b/stable/cockroachdb/Chart.yaml @@ -1,6 +1,6 @@ name: cockroachdb home: https://www.cockroachlabs.com -version: 0.6.5 +version: 0.6.6 appVersion: 1.1.5 description: CockroachDB is a scalable, survivable, strongly-consistent SQL database. icon: https://raw.githubusercontent.com/cockroachdb/cockroach/master/docs/media/cockroach_db.png diff --git a/stable/cockroachdb/README.md b/stable/cockroachdb/README.md index 54628eb906..1c995cd0db 100644 --- a/stable/cockroachdb/README.md +++ b/stable/cockroachdb/README.md @@ -51,6 +51,7 @@ The following tables lists the configurable parameters of the CockroachDB chart | `ClusterDomain` | Cluster's default DNS domain | `cluster.local` | | `NetworkPolicy.Enabled` | Enable NetworkPolicy | `false` | | `NetworkPolicy.AllowExternal` | Don't require client label for connections | `true` | +| `Service.Type` | Public service type | `ClusterIP` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. diff --git a/stable/cockroachdb/templates/cockroachdb-statefulset.yaml b/stable/cockroachdb/templates/cockroachdb-statefulset.yaml index 33ed51c389..1bac88b8a1 100644 --- a/stable/cockroachdb/templates/cockroachdb-statefulset.yaml +++ b/stable/cockroachdb/templates/cockroachdb-statefulset.yaml @@ -10,6 +10,7 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Component }}" spec: + type: {{ .Values.Service.type }} ports: # The main port, served by gRPC, serves Postgres-flavor SQL, internode # traffic and the cli. diff --git a/stable/cockroachdb/values.yaml b/stable/cockroachdb/values.yaml index b6c393bb8b..cf4f443e7d 100644 --- a/stable/cockroachdb/values.yaml +++ b/stable/cockroachdb/values.yaml @@ -31,3 +31,5 @@ ClusterDomain: "cluster.local" NetworkPolicy: Enabled: false AllowExternal: true +Service: + type: ClusterIP