[stable/consul] Add the ability to attach lifecycle options to StatefulSet (#15804)

* Add the ability to attach lifecycle options to StatefulSet

Add sample to values  file

Bump chart version

Signed-off-by: Scott Hawkins <scott@articulate.com>
Signed-off-by: echoboomer <scott@articulate.com>

* Fix space in values file

Signed-off-by: echoboomer <scott@articulate.com>
This commit is contained in:
Scott Hawkins
2019-07-23 12:54:14 -07:00
committed by Kubernetes Prow Robot
parent 7cb3d7817c
commit f98cdecc44
4 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: consul
home: https://github.com/hashicorp/consul
version: 3.7.0
version: 3.7.1
appVersion: 1.5.2
description: Highly available and distributed service discovery and key-value store
designed with support for the modern data center to make distributed systems and
+1
View File
@@ -71,6 +71,7 @@ The following table lists the configurable parameters of the consul chart and th
| `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 | `{}` |
| `lifecycle` | Lifecycle configuration, in YAML, for StatefulSet | `nil` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
@@ -104,6 +104,10 @@ spec:
readOnly: true
mountPath: /etc/consul/userconfig/{{ .name }}
{{ end }}
{{- if .Values.lifecycle }}
lifecycle:
{{ tpl (toYaml .Values.lifecycle) . | indent 10 }}
{{- end }}
livenessProbe:
exec:
command:
+9
View File
@@ -137,3 +137,12 @@ test:
nodeSelector: {}
tolerations: []
additionalLabels: {}
# Lifecycle for StatefulSet
# lifecycle:
# preStop:
# exec:
# command:
# - sh
# - -c
# - "sleep 60"