Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/kiam] Enable PodDisruptionBudgets #26500

Merged
merged 2 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bitnami/kiam/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 2.1.1 (2024-05-23)
## 2.2.0 (2024-05-28)

* [bitnami/kiam] Use different liveness/readiness probes ([#26370](https://github.com/bitnami/charts/pull/26370))
* [bitnami/kiam] Enable PodDisruptionBudgets ([#26500](https://github.com/bitnami/charts/pull/26500))

## <small>2.1.1 (2024-05-23)</small>

* [bitnami/kiam] Use different liveness/readiness probes (#26370) ([ef14a50](https://github.com/bitnami/charts/commit/ef14a506d8116ece0a140790725dcaa5abc4696b)), closes [#26370](https://github.com/bitnami/charts/issues/26370)

## 2.1.0 (2024-05-21)

Expand Down
2 changes: 1 addition & 1 deletion bitnami/kiam/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ maintainers:
name: kiam
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/kiam
version: 2.1.1
version: 2.2.0
3 changes: 3 additions & 0 deletions bitnami/kiam/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ If managing TLS secrets outside of Helm, it is possible to create a TLS secret (
| `server.extraVolumes` | Optionally specify extra list of additional volumes for kiam pods | `[]` |
| `server.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for kiam container(s) | `[]` |
| `server.initContainers` | Add additional init containers to the kiam pods | `[]` |
| `server.pdb.create` | Enable/disable a Pod Disruption Budget creation | `true` |
| `server.pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` |
| `server.pdb.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `server.pdb.minAvailable` and `server.pdb.maxUnavailable` are empty. | `""` |
| `server.sidecars` | Add additional sidecar containers to the kiam pods | `[]` |

### kiam server exposure parameters
Expand Down
28 changes: 28 additions & 0 deletions bitnami/kiam/templates/server/server-pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{- /*
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}

{{- if and .Values.server.enabled (eq .Values.server.resourceType "deployment") .Values.server.pdb.create }}
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
name: {{ template "common.names.fullname" . }}-server
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: server
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if .Values.server.pdb.minAvailable }}
minAvailable: {{ .Values.server.pdb.minAvailable }}
{{- end }}
{{- if or .Values.server.pdb.maxUnavailable ( not .Values.server.pdb.minAvailable ) }}
maxUnavailable: {{ .Values.server.pdb.maxUnavailable | default 1 }}
{{- end }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.server.podLabels .Values.commonLabels ) "context" . ) }}
selector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
app.kubernetes.io/component: server
{{- end }}
10 changes: 10 additions & 0 deletions bitnami/kiam/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,16 @@ server:
## containerPort: 1234
##
initContainers: []
## Pod Disruption Budget configuration
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
## @param server.pdb.create Enable/disable a Pod Disruption Budget creation
## @param server.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
## @param server.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `server.pdb.minAvailable` and `server.pdb.maxUnavailable` are empty.
##
pdb:
create: true
minAvailable: ""
maxUnavailable: ""
## @param server.sidecars Add additional sidecar containers to the kiam pods
## Example:
## sidecars:
Expand Down
Loading