mirror of
https://github.com/helm/charts.git
synced 2026-08-19 20:37:05 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
7cb3d7817c
commit
f98cdecc44
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -137,3 +137,12 @@ test:
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
additionalLabels: {}
|
||||
|
||||
# Lifecycle for StatefulSet
|
||||
# lifecycle:
|
||||
# preStop:
|
||||
# exec:
|
||||
# command:
|
||||
# - sh
|
||||
# - -c
|
||||
# - "sleep 60"
|
||||
|
||||
Reference in New Issue
Block a user