From 6e1decd149b65cd072c0e236f053ffe9fdd1a355 Mon Sep 17 00:00:00 2001 From: Yevhen Polianychko <3277444+messiahUA@users.noreply.github.com> Date: Tue, 22 Feb 2022 09:38:10 +0200 Subject: [PATCH] [bitnami/nginx] add updateStrategy for the deployment (#9067) --- bitnami/nginx/Chart.yaml | 2 +- bitnami/nginx/README.md | 2 ++ bitnami/nginx/templates/deployment.yaml | 3 +++ bitnami/nginx/values.yaml | 7 +++++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/bitnami/nginx/Chart.yaml b/bitnami/nginx/Chart.yaml index 2cbfbeec3b..0dbc1b663c 100644 --- a/bitnami/nginx/Chart.yaml +++ b/bitnami/nginx/Chart.yaml @@ -25,4 +25,4 @@ name: nginx sources: - https://github.com/bitnami/bitnami-docker-nginx - https://www.nginx.org -version: 9.7.9 +version: 9.8.0 diff --git a/bitnami/nginx/README.md b/bitnami/nginx/README.md index 37e7d6aaea..06d1d7875b 100644 --- a/bitnami/nginx/README.md +++ b/bitnami/nginx/README.md @@ -97,6 +97,8 @@ The command removes all the Kubernetes components associated with the chart and | Name | Description | Value | | --------------------------------------- | ----------------------------------------------------------------------------------------- | ------- | | `replicaCount` | Number of NGINX replicas to deploy | `1` | +| `updateStrategy.type` | NGINX deployment strategy type | `""` | +| `updateStrategy.rollingUpdate` | NGINX deployment rolling update configuration parameters | `{}` | | `podLabels` | Additional labels for NGINX pods | `{}` | | `podAnnotations` | Annotations for NGINX pods | `{}` | | `podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` | diff --git a/bitnami/nginx/templates/deployment.yaml b/bitnami/nginx/templates/deployment.yaml index 16de858f08..6a58f6b33d 100644 --- a/bitnami/nginx/templates/deployment.yaml +++ b/bitnami/nginx/templates/deployment.yaml @@ -11,6 +11,9 @@ metadata: {{- end }} spec: replicas: {{ .Values.replicaCount }} + {{- if .Values.updateStrategy }} + strategy: {{- toYaml .Values.updateStrategy | nindent 4 }} + {{- end }} selector: matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} template: diff --git a/bitnami/nginx/values.yaml b/bitnami/nginx/values.yaml index f0052262ae..d18f933e37 100644 --- a/bitnami/nginx/values.yaml +++ b/bitnami/nginx/values.yaml @@ -98,6 +98,13 @@ extraEnvVarsSecret: "" ## @param replicaCount Number of NGINX replicas to deploy ## replicaCount: 1 +## @param updateStrategy.type NGINX deployment strategy type +## @param updateStrategy.rollingUpdate NGINX deployment rolling update configuration parameters +## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy +## +updateStrategy: + type: RollingUpdate + rollingUpdate: {} ## @param podLabels Additional labels for NGINX pods ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ ##