diff --git a/stable/openldap/Chart.yaml b/stable/openldap/Chart.yaml index 4e85e4f9ae..7534db7028 100644 --- a/stable/openldap/Chart.yaml +++ b/stable/openldap/Chart.yaml @@ -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 diff --git a/stable/openldap/README.md b/stable/openldap/README.md index e84618afa9..f1359049ff 100644 --- a/stable/openldap/README.md +++ b/stable/openldap/README.md @@ -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` | diff --git a/stable/openldap/templates/deployment.yaml b/stable/openldap/templates/deployment.yaml index ced489d13e..59139f32e2 100644 --- a/stable/openldap/templates/deployment.yaml +++ b/stable/openldap/templates/deployment.yaml @@ -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" . }} diff --git a/stable/openldap/values.yaml b/stable/openldap/values.yaml index f3c806d350..f30f720562 100644 --- a/stable/openldap/values.yaml +++ b/stable/openldap/values.yaml @@ -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