diff --git a/stable/cockroachdb/Chart.yaml b/stable/cockroachdb/Chart.yaml index a89d6c1a5f..2c2b889062 100755 --- a/stable/cockroachdb/Chart.yaml +++ b/stable/cockroachdb/Chart.yaml @@ -1,7 +1,7 @@ name: cockroachdb home: https://www.cockroachlabs.com -version: 2.1.1 -appVersion: 2.1.5 +version: 2.1.2 +appVersion: 2.1.6 description: CockroachDB is a scalable, survivable, strongly-consistent SQL database. icon: https://raw.githubusercontent.com/cockroachdb/cockroach/master/docs/media/cockroach_db.png sources: diff --git a/stable/cockroachdb/README.md b/stable/cockroachdb/README.md index d4fce3dba8..85038a91c1 100644 --- a/stable/cockroachdb/README.md +++ b/stable/cockroachdb/README.md @@ -104,6 +104,7 @@ The following table lists the configurable parameters of the CockroachDB chart a | `Locality` | Locality attribute for this deployment | `""` | | `ExtraArgs` | Additional command-line arguments | `[]` | | `ExtraSecretMounts` | Additional secrets to mount at cluster members | `[]` | +| `ExtraEnvArgs` | Allows to set extra ENV args | `[]` | 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 a7f505413a..7d1f14012a 100644 --- a/stable/cockroachdb/templates/cockroachdb-statefulset.yaml +++ b/stable/cockroachdb/templates/cockroachdb-statefulset.yaml @@ -283,6 +283,9 @@ spec: value: "{{ printf "%s-%s" .Release.Name .Values.Name | trunc 56 }}.{{ .Release.Namespace }}.svc.{{ .Values.ClusterDomain }}" - name: COCKROACH_CHANNEL value: kubernetes-helm +{{- if .Values.ExtraEnvArgs }} +{{ toYaml .Values.ExtraEnvArgs | indent 8 }} +{{- end }} volumeMounts: - name: datadir mountPath: /cockroach/cockroach-data diff --git a/stable/cockroachdb/values.yaml b/stable/cockroachdb/values.yaml index 611d4ab68c..96a28aa520 100644 --- a/stable/cockroachdb/values.yaml +++ b/stable/cockroachdb/values.yaml @@ -5,7 +5,7 @@ Name: "cockroachdb" Image: "cockroachdb/cockroach" -ImageTag: "v2.1.5" +ImageTag: "v2.1.6" ImagePullPolicy: "Always" Replicas: 3 MaxUnavailable: 1 @@ -72,3 +72,9 @@ Locality: "" ExtraArgs: [] # ExtraSecretMounts is a list of names from secrets in the same namespace as the cockroachdb cluster, which shall be mounted into /etc/cockroach/secrets/ for every cluster member. ExtraSecretMounts: [] +# ExtraEnvArgs is a list of name,value tuples providing extra ENV variables. +# e.g.: +# ExtraEnvArgs: +# - name: COCKROACH_ENGINE_MAX_SYNC_DURATION +# value: "24h" +ExtraEnvArgs: []