[bitnami/influxdb] Enable PodDisruptionBudgets (#26491)

* [bitnami/influxdb] Enable PodDisruptionBudgets

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

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@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 13:41:46 +02:00
committed by GitHub
parent 568aafa1de
commit 1b1fbd9e66
5 changed files with 48 additions and 3 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 6.2.1 (2024-05-28)
## 6.3.0 (2024-05-29)
* [bitnami/influxdb] Release 6.2.1 ([#26511](https://github.com/bitnami/charts/pull/26511))
* [bitnami/influxdb] Enable PodDisruptionBudgets ([#26491](https://github.com/bitnami/charts/pull/26491))
## <small>6.2.1 (2024-05-28)</small>
* [bitnami/influxdb] Release 6.2.1 (#26511) ([b5b3bfc](https://github.com/bitnami/charts/commit/b5b3bfc36967ed57c72266dc7fda45e863035eeb)), closes [#26511](https://github.com/bitnami/charts/issues/26511)
## 6.2.0 (2024-05-27)

View File

@@ -37,4 +37,4 @@ maintainers:
name: influxdb
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/influxdb
version: 6.2.1
version: 6.3.0

View File

@@ -267,6 +267,9 @@ There are K8s distribution, such as OpenShift, where you can dynamically define
| `influxdb.customReadinessProbe` | Override default readiness probe | `{}` |
| `influxdb.sidecars` | Add additional sidecar containers to the InfluxDB&trade; pod(s) | `[]` |
| `influxdb.initContainers` | Add additional init containers to the InfluxDB&trade; pod(s) | `[]` |
| `influxdb.pdb.create` | Enable/disable a Pod Disruption Budget creation | `true` |
| `influxdb.pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` |
| `influxdb.pdb.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `influxdb.pdb.minAvailable` and `influxdb.pdb.maxUnavailable` are empty. | `""` |
| `influxdb.service.type` | Kubernetes service type (`ClusterIP`, `NodePort` or `LoadBalancer`) | `ClusterIP` |
| `influxdb.service.ports.http` | InfluxDB&trade; HTTP port | `8086` |
| `influxdb.service.ports.rpc` | InfluxDB&trade; RPC port | `8088` |

View File

@@ -0,0 +1,28 @@
{{- /*
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if .Values.influxdb.pdb.create }}
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: influxdb
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if .Values.influxdb.pdb.minAvailable }}
minAvailable: {{ .Values.influxdb.pdb.minAvailable }}
{{- end }}
{{- if or .Values.influxdb.pdb.maxUnavailable ( not .Values.influxdb.pdb.minAvailable ) }}
maxUnavailable: {{ .Values.influxdb.pdb.maxUnavailable | default 1 }}
{{- end }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.influxdb.podLabels .Values.commonLabels ) "context" . ) }}
selector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
app.kubernetes.io/component: influxdb
{{- end }}

View File

@@ -443,6 +443,16 @@ influxdb:
## command: ['sh', '-c', 'echo "hello world"']
##
initContainers: []
## Pod Disruption Budget configuration
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
## @param influxdb.pdb.create Enable/disable a Pod Disruption Budget creation
## @param influxdb.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
## @param influxdb.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `influxdb.pdb.minAvailable` and `influxdb.pdb.maxUnavailable` are empty.
##
pdb:
create: true
minAvailable: ""
maxUnavailable: ""
## Service parameters
##
service: