diff --git a/stable/consul/Chart.yaml b/stable/consul/Chart.yaml index fccf105d8e..3c601c9876 100755 --- a/stable/consul/Chart.yaml +++ b/stable/consul/Chart.yaml @@ -1,6 +1,6 @@ name: consul home: https://github.com/hashicorp/consul -version: 3.6.0 +version: 3.6.1 appVersion: 1.0.0 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and diff --git a/stable/consul/README.md b/stable/consul/README.md index 9573d3cebd..5ed72bb933 100644 --- a/stable/consul/README.md +++ b/stable/consul/README.md @@ -70,6 +70,7 @@ The following table lists the configurable parameters of the consul chart and th | `test.imageTag` | Test container image tag (used for helm test) | `v1.4.8-bash` | | `test.rbac.create` | Create rbac for test container | `false` | | `test.rbac.serviceAccountName` | Name of existed service account for test container | `` | +| `additionalLabels` | Add labels to Pod and StatefulSet | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. diff --git a/stable/consul/templates/consul-statefulset.yaml b/stable/consul/templates/consul-statefulset.yaml index 4202cc2bbb..8a78c4c2a5 100644 --- a/stable/consul/templates/consul-statefulset.yaml +++ b/stable/consul/templates/consul-statefulset.yaml @@ -7,6 +7,9 @@ metadata: release: {{ .Release.Name | quote }} chart: {{ template "consul.chart" . }} component: "{{ .Release.Name }}-{{ .Values.Component }}" +{{- if .Values.additionalLabels }} +{{ toYaml .Values.additionalLabels | indent 4 }} +{{- end }} spec: serviceName: "{{ template "consul.fullname" . }}" replicas: {{ default 3 .Values.Replicas }} @@ -24,6 +27,9 @@ spec: release: {{ .Release.Name | quote }} chart: {{ template "consul.chart" . }} component: "{{ .Release.Name }}-{{ .Values.Component }}" +{{- if .Values.additionalLabels }} +{{ toYaml .Values.additionalLabels | indent 8 }} +{{- end }} spec: securityContext: fsGroup: 1000 diff --git a/stable/consul/values.yaml b/stable/consul/values.yaml index b09c894a24..6e15bb4f6c 100644 --- a/stable/consul/values.yaml +++ b/stable/consul/values.yaml @@ -136,3 +136,4 @@ test: nodeSelector: {} tolerations: [] +additionalLabels: {}