Skip to content

Commit

Permalink
[stable/openldap] Add deployment strategy configuration (helm#10499)
Browse files Browse the repository at this point in the history
* [stable/openldap] Add deployment strategy configuration

Signed-off-by: Jacek Ciwiś <[email protected]>

* [stable/openldap] Bump to version 0.3.0

Signed-off-by: Jacek Ciwiś <[email protected]>

* [stable/openldap] Prevent from merging unsupported parameters

Signed-off-by: Jacek Ciwiś <[email protected]>
  • Loading branch information
Jacek Ciwiś authored and k8s-ci-robot committed Jan 10, 2019
1 parent 0d51a41 commit 6da7a7f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/openldap/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: openldap
home: https://www.openldap.org
version: 0.2.4
version: 0.3.0
appVersion: 2.4.44
description: Community developed LDAP software
icon: http://www.openldap.org/images/headers/LDAPworm.gif
Expand Down
1 change: 1 addition & 0 deletions stable/openldap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ The following table lists the configurable parameters of the openldap chart and
| Parameter | Description | Default |
| ---------------------------------- | ------------------------------------------------------------------------- | ------------------|
| `replicaCount` | Number of replicas | `1` |
| `strategy` | Deployment strategy | `{}` |
| `image.repository` | Container image repository | `osixia/openldap` |
| `image.tag` | Container image tag | `1.1.10` |
| `image.pullPolicy` | Container pull policy | `IfNotPresent` |
Expand Down
4 changes: 4 additions & 0 deletions stable/openldap/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ metadata:
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
{{- if .Values.strategy }}
strategy:
{{ toYaml .Values.strategy | indent 4 }}
{{- end }}
selector:
matchLabels:
app: {{ template "openldap.name" . }}
Expand Down
13 changes: 13 additions & 0 deletions stable/openldap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
# Declare variables to be passed into your templates.

replicaCount: 1

# Define deployment strategy - IMPORTANT: use rollingUpdate: null when use Recreate strategy.
# It prevents from merging with existing map keys which are forbidden.
strategy: {}
# type: RollingUpdate
# rollingUpdate:
# maxSurge: 1
# maxUnavailable: 0
#
# or
#
# type: Recreate
# rollingUpdate: null
image:
# From repository https://github.com/osixia/docker-openldap
repository: osixia/openldap
Expand Down

0 comments on commit 6da7a7f

Please sign in to comment.