[bitnami/kafka] feat: use new helper for checking API versions (#32051)

This commit is contained in:
Juan Ariza Toledano
2025-02-20 11:10:40 +01:00
committed by GitHub
parent 6fb5bfe5ea
commit 8abc389c42
6 changed files with 32 additions and 22 deletions

View File

@@ -1,8 +1,14 @@
# Changelog # Changelog
## 31.3.2 (2025-02-20) ## 31.4.0 (2025-02-20)
* [bitnami/kafka] Release 31.3.2 ([#32034](https://github.com/bitnami/charts/pull/32034)) * [bitnami/kafka] feat: use new helper for checking API versions ([#32051](https://github.com/bitnami/charts/pull/32051))
## <small>31.3.2 (2025-02-20)</small>
* [bitnami/*] Use CDN url for the Bitnami Application Icons (#31881) ([d9bb11a](https://github.com/bitnami/charts/commit/d9bb11a9076b9bfdcc70ea022c25ef50e9713657)), closes [#31881](https://github.com/bitnami/charts/issues/31881)
* [bitnami/kafka] Release 31.3.2 (#32034) ([3f4ca72](https://github.com/bitnami/charts/commit/3f4ca729b3192c7cc742da1ccefc0676e93cdd38)), closes [#32034](https://github.com/bitnami/charts/issues/32034)
* Update copyright year (#31682) ([e9f02f5](https://github.com/bitnami/charts/commit/e9f02f5007068751f7eb2270fece811e685c99b6)), closes [#31682](https://github.com/bitnami/charts/issues/31682)
## <small>31.3.1 (2025-01-28)</small> ## <small>31.3.1 (2025-01-28)</small>

View File

@@ -16,28 +16,28 @@ annotations:
apiVersion: v2 apiVersion: v2
appVersion: 3.9.0 appVersion: 3.9.0
dependencies: dependencies:
- condition: zookeeper.enabled - condition: zookeeper.enabled
name: zookeeper name: zookeeper
repository: oci://registry-1.docker.io/bitnamicharts repository: oci://registry-1.docker.io/bitnamicharts
version: 13.x.x version: 13.x.x
- name: common - name: common
repository: oci://registry-1.docker.io/bitnamicharts repository: oci://registry-1.docker.io/bitnamicharts
tags: tags:
- bitnami-common - bitnami-common
version: 2.x.x version: 2.x.x
description: Apache Kafka is a distributed streaming platform designed to build real-time pipelines and can be used as a message broker or as a replacement for a log aggregation solution for big data applications. description: Apache Kafka is a distributed streaming platform designed to build real-time pipelines and can be used as a message broker or as a replacement for a log aggregation solution for big data applications.
home: https://bitnami.com home: https://bitnami.com
icon: https://dyltqmyl993wv.cloudfront.net/assets/stacks/kafka/img/kafka-stack-220x234.png icon: https://dyltqmyl993wv.cloudfront.net/assets/stacks/kafka/img/kafka-stack-220x234.png
keywords: keywords:
- kafka - kafka
- zookeeper - zookeeper
- streaming - streaming
- producer - producer
- consumer - consumer
maintainers: maintainers:
- name: Broadcom, Inc. All Rights Reserved. - name: Broadcom, Inc. All Rights Reserved.
url: https://github.com/bitnami/charts url: https://github.com/bitnami/charts
name: kafka name: kafka
sources: sources:
- https://github.com/bitnami/charts/tree/main/bitnami/kafka - https://github.com/bitnami/charts/tree/main/bitnami/kafka
version: 31.3.2 version: 31.4.0

View File

@@ -453,6 +453,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru
| Name | Description | Value | | Name | Description | Value |
| ------------------------- | --------------------------------------------------------------------------------------- | --------------- | | ------------------------- | --------------------------------------------------------------------------------------- | --------------- |
| `kubeVersion` | Override Kubernetes version | `""` | | `kubeVersion` | Override Kubernetes version | `""` |
| `apiVersions` | Override Kubernetes API versions reported by .Capabilities | `[]` |
| `nameOverride` | String to partially override common.names.fullname | `""` | | `nameOverride` | String to partially override common.names.fullname | `""` |
| `fullnameOverride` | String to fully override common.names.fullname | `""` | | `fullnameOverride` | String to fully override common.names.fullname | `""` |
| `clusterDomain` | Default Kubernetes cluster domain | `cluster.local` | | `clusterDomain` | Default Kubernetes cluster domain | `cluster.local` |

View File

@@ -4,7 +4,7 @@ SPDX-License-Identifier: APACHE-2.0
*/}} */}}
{{- $replicaCount := int .Values.broker.replicaCount }} {{- $replicaCount := int .Values.broker.replicaCount }}
{{- if and (gt $replicaCount 0) (.Capabilities.APIVersions.Has "autoscaling.k8s.io/v1/VerticalPodAutoscaler") .Values.broker.autoscaling.vpa.enabled }} {{- if and (gt $replicaCount 0) (include "common.capabilities.apiVersions.has" ( dict "version" "autoscaling.k8s.io/v1/VerticalPodAutoscaler" "context" . )) .Values.broker.autoscaling.vpa.enabled }}
apiVersion: {{ include "common.capabilities.vpa.apiVersion" . }} apiVersion: {{ include "common.capabilities.vpa.apiVersion" . }}
kind: VerticalPodAutoscaler kind: VerticalPodAutoscaler
metadata: metadata:

View File

@@ -4,7 +4,7 @@ SPDX-License-Identifier: APACHE-2.0
*/}} */}}
{{- $replicaCount := int .Values.controller.replicaCount }} {{- $replicaCount := int .Values.controller.replicaCount }}
{{- if and .Values.kraft.enabled (gt $replicaCount 0) (.Capabilities.APIVersions.Has "autoscaling.k8s.io/v1/VerticalPodAutoscaler") .Values.controller.autoscaling.vpa.enabled }} {{- if and .Values.kraft.enabled (gt $replicaCount 0) (include "common.capabilities.apiVersions.has" ( dict "version" "autoscaling.k8s.io/v1/VerticalPodAutoscaler" "context" . )) .Values.controller.autoscaling.vpa.enabled }}
apiVersion: {{ include "common.capabilities.vpa.apiVersion" . }} apiVersion: {{ include "common.capabilities.vpa.apiVersion" . }}
kind: VerticalPodAutoscaler kind: VerticalPodAutoscaler
metadata: metadata:

View File

@@ -41,6 +41,9 @@ global:
## @param kubeVersion Override Kubernetes version ## @param kubeVersion Override Kubernetes version
## ##
kubeVersion: "" kubeVersion: ""
## @param apiVersions Override Kubernetes API versions reported by .Capabilities
##
apiVersions: []
## @param nameOverride String to partially override common.names.fullname ## @param nameOverride String to partially override common.names.fullname
## ##
nameOverride: "" nameOverride: ""