From 8ae73a4fd91ebb6f9fe93b5de6fbd3919bb12ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20H=C3=BCning?= Date: Thu, 2 May 2019 06:28:17 +0200 Subject: [PATCH] Add an option for ExtraAnnotations for the StatefulSet (#13400) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian Hüning --- stable/cockroachdb/Chart.yaml | 2 +- stable/cockroachdb/README.md | 1 + stable/cockroachdb/templates/cockroachdb-statefulset.yaml | 4 ++++ stable/cockroachdb/values.yaml | 5 +++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/stable/cockroachdb/Chart.yaml b/stable/cockroachdb/Chart.yaml index 18234a91c6..f04228fa24 100755 --- a/stable/cockroachdb/Chart.yaml +++ b/stable/cockroachdb/Chart.yaml @@ -1,6 +1,6 @@ name: cockroachdb home: https://www.cockroachlabs.com -version: 2.1.3 +version: 2.1.4 appVersion: 19.1.0 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 f37805fef1..33a1ca0665 100644 --- a/stable/cockroachdb/README.md +++ b/stable/cockroachdb/README.md @@ -105,6 +105,7 @@ The following table lists the configurable parameters of the CockroachDB chart a | `ExtraArgs` | Additional command-line arguments | `[]` | | `ExtraSecretMounts` | Additional secrets to mount at cluster members | `[]` | | `ExtraEnvArgs` | Allows to set extra ENV args | `[]` | +| `ExtraAnnotations` | Allows to set extra Annotations | `[]` | 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 7d1f14012a..f1ab4432af 100644 --- a/stable/cockroachdb/templates/cockroachdb-statefulset.yaml +++ b/stable/cockroachdb/templates/cockroachdb-statefulset.yaml @@ -192,6 +192,10 @@ spec: component: "{{ .Release.Name }}-{{ .Values.Component }}" template: metadata: +{{- if .Values.ExtraAnnotations }} + annotations: +{{ toYaml .Values.ExtraAnnotations | indent 8 }} +{{- end }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} diff --git a/stable/cockroachdb/values.yaml b/stable/cockroachdb/values.yaml index e57aa1ad8c..c0ff7cb61b 100644 --- a/stable/cockroachdb/values.yaml +++ b/stable/cockroachdb/values.yaml @@ -78,3 +78,8 @@ ExtraSecretMounts: [] # - name: COCKROACH_ENGINE_MAX_SYNC_DURATION # value: "24h" ExtraEnvArgs: [] +# ExtraAnnotations is an object to provide additional annotations to the Statefulset +# e.g.: +# ExtraAnnotations: +# key: values +ExtraAnnotations: {}