[bitnami/tensorflow-resnet] Enable PodDisruptionBudgets (#26539)

* [bitnami/tensorflow-resnet] Enable PodDisruptionBudgets

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Fran Mulero <fmulero@vmware.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Fran Mulero
2024-05-29 08:58:16 +00:00
committed by GitHub
co-authored by Bitnami Containers
parent c6b2f1cc32
commit b09c3747e3
5 changed files with 46 additions and 3 deletions
+6 -2
View File
@@ -1,8 +1,12 @@
# Changelog
## 4.1.1 (2024-05-22)
## 4.2.0 (2024-05-29)
* [bitnami/tensorflow-resnet] Use different liveness/readiness probes ([#26347](https://github.com/bitnami/charts/pull/26347))
* [bitnami/tensorflow-resnet] Enable PodDisruptionBudgets ([#26539](https://github.com/bitnami/charts/pull/26539))
## <small>4.1.1 (2024-05-24)</small>
* [bitnami/tensorflow-resnet] Use different liveness/readiness probes (#26347) ([4a037f5](https://github.com/bitnami/charts/commit/4a037f5db5353a3d408432df5d4c61a250c8ffb8)), closes [#26347](https://github.com/bitnami/charts/issues/26347)
## 4.1.0 (2024-05-21)
+1 -1
View File
@@ -33,4 +33,4 @@ maintainers:
name: tensorflow-resnet
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/tensorflow-resnet
version: 4.1.1
version: 4.2.0
+3
View File
@@ -140,6 +140,9 @@ As an alternative, you can use any of the preset configurations for pod affinity
| `sidecars` | Add additional sidecar containers to the pod | `[]` |
| `enableDefaultInitContainers` | Add default init containers to the deployment | `true` |
| `initContainers` | Add additional init containers to the pod | `[]` |
| `pdb.create` | Enable/disable a Pod Disruption Budget creation | `true` |
| `pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` |
| `pdb.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty. | `""` |
| `updateStrategy.type` | Deployment strategy type. | `RollingUpdate` |
| `priorityClassName` | Pod's priorityClassName | `""` |
| `schedulerName` | Name of the k8s scheduler (other than default) | `""` |
@@ -0,0 +1,26 @@
{{- /*
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if .Values.pdb.create }}
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
name: {{ template "common.names.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if .Values.pdb.minAvailable }}
minAvailable: {{ .Values.pdb.minAvailable }}
{{- end }}
{{- if or .Values.pdb.maxUnavailable ( not .Values.pdb.minAvailable ) }}
maxUnavailable: {{ .Values.pdb.maxUnavailable | default 1 }}
{{- end }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
selector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
{{- end }}
+10
View File
@@ -274,6 +274,16 @@ enableDefaultInitContainers: true
## command: ['sh', '-c', 'echo "hello world"']
##
initContainers: []
## Pod Disruption Budget configuration
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
## @param pdb.create Enable/disable a Pod Disruption Budget creation
## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
##
pdb:
create: true
minAvailable: ""
maxUnavailable: ""
## @param updateStrategy.type Deployment strategy type.
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
## e.g: