[bitnami/apache] Allow setting deployment's revisionHistoryLimit (#16016)

Signed-off-by: Patrick Hobusch <patrick@hobusch.net>
This commit is contained in:
Patrick Hobusch
2023-04-12 23:48:28 +08:00
committed by GitHub
parent c01a7fb866
commit 85276527fb
4 changed files with 6 additions and 1 deletions

View File

@@ -26,4 +26,4 @@ name: apache
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/apache
- https://httpd.apache.org
version: 9.2.23
version: 9.3.0

View File

@@ -92,6 +92,7 @@ The command removes all the Kubernetes components associated with the chart and
| `git.pullPolicy` | Git image pull policy | `IfNotPresent` |
| `git.pullSecrets` | Specify docker-registry secret names as an array | `[]` |
| `replicaCount` | Number of replicas of the Apache deployment | `1` |
| `revisionHistoryLimit` | The number of old history to retain to allow rollback | `10` |
| `podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |

View File

@@ -14,6 +14,7 @@ spec:
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- if .Values.updateStrategy }}
strategy: {{- toYaml .Values.updateStrategy | nindent 4 }}
{{- end }}

View File

@@ -96,6 +96,9 @@ git:
## @param replicaCount Number of replicas of the Apache deployment
##
replicaCount: 1
## @param revisionHistoryLimit The number of old history to retain to allow rollback
##
revisionHistoryLimit: 10
## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
##