mirror of
https://github.com/bitnami/charts.git
synced 2026-04-05 08:47:10 +08:00
[bitnami/common] Add helper to check API versions (#31969)
This commit is contained in:
committed by
GitHub
parent
486712d975
commit
5ba89c5afc
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 2.29.1 (2025-01-10)
|
||||
## 2.30.0 (2025-02-19)
|
||||
|
||||
* [bitnami/common] Removing seLinuxOptions from omission ([#31279](https://github.com/bitnami/charts/pull/31279))
|
||||
* [bitnami/common] Add helper to check API versions ([#31969](https://github.com/bitnami/charts/pull/31969))
|
||||
|
||||
## <small>2.29.1 (2025-01-23)</small>
|
||||
|
||||
* [bitnami/common] Removing seLinuxOptions from omission (#31279) ([e7cb168](https://github.com/bitnami/charts/commit/e7cb168ca2bccd57e28bb985e099953a4f7e3b38)), closes [#31279](https://github.com/bitnami/charts/issues/31279) [#31278](https://github.com/bitnami/charts/issues/31278)
|
||||
|
||||
## 2.29.0 (2025-01-03)
|
||||
|
||||
@@ -269,7 +273,7 @@
|
||||
|
||||
## <small>2.1.2 (2022-10-31)</small>
|
||||
|
||||
* [bitnami/common] Do not explicitly specify namespace in affinity term. (#12932) ([638a48e](https://github.com/bitnami/charts/commit/638a48e4d3ec7b5d160f4b525ec40218512c464b)), closes [#12932](https://github.com/bitnami/charts/issues/12932) [/kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podaffinityterm-v1](https://github.com//kubernetes.io/docs/reference/generated/kubernetes-api/v1.23//issues/podaffinityterm-v1) [#12668](https://github.com/bitnami/charts/issues/12668)
|
||||
* [bitnami/common] Do not explicitly specify namespace in affinity term. (#12932) ([638a48e](https://github.com/bitnami/charts/commit/638a48e4d3ec7b5d160f4b525ec40218512c464b)), closes [#12932](https://github.com/bitnami/charts/issues/12932) [#12668](https://github.com/bitnami/charts/issues/12668)
|
||||
|
||||
## <small>2.1.1 (2022-10-27)</small>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ annotations:
|
||||
licenses: Apache-2.0
|
||||
apiVersion: v2
|
||||
# Please make sure that version and appVersion are always the same.
|
||||
appVersion: 2.29.1
|
||||
appVersion: 2.30.0
|
||||
description: A Library Helm Chart for grouping common logic between bitnami charts. This chart is not deployable by itself.
|
||||
home: https://bitnami.com
|
||||
icon: https://dyltqmyl993wv.cloudfront.net/downloads/logos/bitnami-mark.png
|
||||
@@ -23,4 +23,4 @@ name: common
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/common
|
||||
type: library
|
||||
version: 2.29.1
|
||||
version: 2.30.0
|
||||
|
||||
@@ -12,6 +12,20 @@ Return the target Kubernetes version
|
||||
{{- default (default .Capabilities.KubeVersion.Version .Values.kubeVersion) ((.Values.global).kubeVersion) -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return true if the apiVersion is supported
|
||||
Usage:
|
||||
{{ include "common.capabilities.apiVersions.has" (dict "version" "batch/v1" "context" $) }}
|
||||
*/}}
|
||||
{{- define "common.capabilities.apiVersions.has" -}}
|
||||
{{- $providedAPIVersions := default .context.Values.apiVersions ((.context.Values.global).apiVersions) -}}
|
||||
{{- if and (empty $providedAPIVersions) (.context.Capabilities.APIVersions.Has .version) -}}
|
||||
{{- true -}}
|
||||
{{- else if has .version $providedAPIVersions -}}
|
||||
{{- true -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the appropriate apiVersion for poddisruptionbudget.
|
||||
*/}}
|
||||
|
||||
Reference in New Issue
Block a user