Skip to content

Commit 9cae6fd

Browse files
committed
update and resync charts
1 parent 7882433 commit 9cae6fd

29 files changed

+3623
-305
lines changed

.charts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ charts:
196196
repository:
197197
url: https://charts.bitnami.com/bitnami
198198
- name: redis
199-
version: 19.3.2
199+
version: 20.2.1
200200
repository:
201201
url: https://charts.bitnami.com/bitnami
202202
- name: rook-ceph
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
annotations:
3+
pod:
4+
default:
5+
custom.tld/key: "value"
6+
custom.tld/key2: "value2"
7+
octavia_api:
8+
another.tld/foo: "bar"
9+
secret:
10+
default:
11+
custom.tld/key: "value"
12+
custom.tld/key2: "value2"
13+
identity:
14+
admin:
15+
another.tld/foo: "bar"
16+
oci_image_registry:
17+
octavia:
18+
custom.tld/key: "value"
19+
tls:
20+
load_balancer_api_public:
21+
custom.tld/key: "value"
22+
...

charts/redis/.helmignore

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
*.tmproj
2222
# img folder
2323
img/
24+
# Changelog
25+
CHANGELOG.md

charts/redis/Chart.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: common
33
repository: oci://registry-1.docker.io/bitnamicharts
4-
version: 2.19.2
5-
digest: sha256:e670e1075bfafffe040fae1158f1fa1f592585f394b48704ba137d2d083b1571
6-
generated: "2024-05-13T11:37:01.073376388Z"
4+
version: 2.23.0
5+
digest: sha256:fbd6439f12ded949c04553b9c52a4c8153a8f2790147d972b314ddcd46921a14
6+
generated: "2024-09-14T18:55:25.608679155Z"

charts/redis/Chart.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ annotations:
22
category: Database
33
images: |
44
- name: kubectl
5-
image: docker.io/bitnami/kubectl:1.30.0-debian-12-r5
5+
image: docker.io/bitnami/kubectl:1.31.1-debian-12-r3
66
- name: os-shell
7-
image: docker.io/bitnami/os-shell:12-debian-12-r21
7+
image: docker.io/bitnami/os-shell:12-debian-12-r30
88
- name: redis
9-
image: docker.io/bitnami/redis:7.2.4-debian-12-r16
9+
image: docker.io/bitnami/redis:7.4.1-debian-12-r0
1010
- name: redis-exporter
11-
image: docker.io/bitnami/redis-exporter:1.59.0-debian-12-r6
11+
image: docker.io/bitnami/redis-exporter:1.63.0-debian-12-r1
1212
- name: redis-sentinel
13-
image: docker.io/bitnami/redis-sentinel:7.2.4-debian-12-r13
13+
image: docker.io/bitnami/redis-sentinel:7.4.1-debian-12-r0
1414
licenses: Apache-2.0
1515
apiVersion: v2
16-
appVersion: 7.2.4
16+
appVersion: 7.4.1
1717
dependencies:
1818
- name: common
1919
repository: oci://registry-1.docker.io/bitnamicharts
@@ -35,4 +35,4 @@ maintainers:
3535
name: redis
3636
sources:
3737
- https://github.com/bitnami/charts/tree/main/bitnami/redis
38-
version: 19.3.2
38+
version: 20.2.1

charts/redis/README.md

+20-5
Large diffs are not rendered by default.

charts/redis/charts/common/.helmignore

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@
2222
.vscode/
2323
# img folder
2424
img/
25+
# Changelog
26+
CHANGELOG.md

charts/redis/charts/common/Chart.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ annotations:
22
category: Infrastructure
33
licenses: Apache-2.0
44
apiVersion: v2
5-
appVersion: 2.19.2
5+
appVersion: 2.23.0
66
description: A Library Helm Chart for grouping common logic between bitnami charts.
77
This chart is not deployable by itself.
88
home: https://bitnami.com
@@ -14,10 +14,10 @@ keywords:
1414
- function
1515
- bitnami
1616
maintainers:
17-
- name: VMware, Inc.
17+
- name: Broadcom, Inc. All Rights Reserved.
1818
url: https://github.com/bitnami/charts
1919
name: common
2020
sources:
21-
- https://github.com/bitnami/charts
21+
- https://github.com/bitnami/charts/tree/main/bitnami/common
2222
type: library
23-
version: 2.19.2
23+
version: 2.23.0

charts/redis/charts/common/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ data:
2424
myvalue: "Hello World"
2525
```
2626
27-
Looking to use our applications in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the enterprise edition of Bitnami Application Catalog.
27+
Looking to use our applications in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the commercial edition of the Bitnami catalog.
2828
2929
## Introduction
3030
@@ -214,7 +214,7 @@ helm install test mychart --set path.to.value00="",path.to.value01=""
214214

215215
#### Useful links
216216

217-
- <https://docs.bitnami.com/tutorials/resolve-helm2-helm3-post-migration-issues/>
217+
- <https://docs.vmware.com/en/VMware-Tanzu-Application-Catalog/services/tutorials/GUID-resolve-helm2-helm3-post-migration-issues-index.html>
218218
- <https://helm.sh/docs/topics/v2_v3_migration/>
219219
- <https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3/>
220220

charts/redis/charts/common/templates/_capabilities.tpl

+36-28
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Return the target Kubernetes version
1616
Return the appropriate apiVersion for poddisruptionbudget.
1717
*/}}
1818
{{- define "common.capabilities.policy.apiVersion" -}}
19-
{{- if semverCompare "<1.21-0" (include "common.capabilities.kubeVersion" .) -}}
19+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
20+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.21-0" $kubeVersion) -}}
2021
{{- print "policy/v1beta1" -}}
2122
{{- else -}}
2223
{{- print "policy/v1" -}}
@@ -27,7 +28,8 @@ Return the appropriate apiVersion for poddisruptionbudget.
2728
Return the appropriate apiVersion for networkpolicy.
2829
*/}}
2930
{{- define "common.capabilities.networkPolicy.apiVersion" -}}
30-
{{- if semverCompare "<1.7-0" (include "common.capabilities.kubeVersion" .) -}}
31+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
32+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.7-0" $kubeVersion) -}}
3133
{{- print "extensions/v1beta1" -}}
3234
{{- else -}}
3335
{{- print "networking.k8s.io/v1" -}}
@@ -38,7 +40,8 @@ Return the appropriate apiVersion for networkpolicy.
3840
Return the appropriate apiVersion for cronjob.
3941
*/}}
4042
{{- define "common.capabilities.cronjob.apiVersion" -}}
41-
{{- if semverCompare "<1.21-0" (include "common.capabilities.kubeVersion" .) -}}
43+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
44+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.21-0" $kubeVersion) -}}
4245
{{- print "batch/v1beta1" -}}
4346
{{- else -}}
4447
{{- print "batch/v1" -}}
@@ -49,7 +52,8 @@ Return the appropriate apiVersion for cronjob.
4952
Return the appropriate apiVersion for daemonset.
5053
*/}}
5154
{{- define "common.capabilities.daemonset.apiVersion" -}}
52-
{{- if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}}
55+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
56+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.14-0" $kubeVersion) -}}
5357
{{- print "extensions/v1beta1" -}}
5458
{{- else -}}
5559
{{- print "apps/v1" -}}
@@ -60,7 +64,8 @@ Return the appropriate apiVersion for daemonset.
6064
Return the appropriate apiVersion for deployment.
6165
*/}}
6266
{{- define "common.capabilities.deployment.apiVersion" -}}
63-
{{- if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}}
67+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
68+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.14-0" $kubeVersion) -}}
6469
{{- print "extensions/v1beta1" -}}
6570
{{- else -}}
6671
{{- print "apps/v1" -}}
@@ -71,7 +76,8 @@ Return the appropriate apiVersion for deployment.
7176
Return the appropriate apiVersion for statefulset.
7277
*/}}
7378
{{- define "common.capabilities.statefulset.apiVersion" -}}
74-
{{- if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}}
79+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
80+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.14-0" $kubeVersion) -}}
7581
{{- print "apps/v1beta1" -}}
7682
{{- else -}}
7783
{{- print "apps/v1" -}}
@@ -82,30 +88,24 @@ Return the appropriate apiVersion for statefulset.
8288
Return the appropriate apiVersion for ingress.
8389
*/}}
8490
{{- define "common.capabilities.ingress.apiVersion" -}}
85-
{{- if .Values.ingress -}}
86-
{{- if .Values.ingress.apiVersion -}}
91+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
92+
{{- if (.Values.ingress).apiVersion -}}
8793
{{- .Values.ingress.apiVersion -}}
88-
{{- else if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}}
94+
{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.14-0" $kubeVersion) -}}
8995
{{- print "extensions/v1beta1" -}}
90-
{{- else if semverCompare "<1.19-0" (include "common.capabilities.kubeVersion" .) -}}
96+
{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.19-0" $kubeVersion) -}}
9197
{{- print "networking.k8s.io/v1beta1" -}}
9298
{{- else -}}
9399
{{- print "networking.k8s.io/v1" -}}
94100
{{- end }}
95-
{{- else if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}}
96-
{{- print "extensions/v1beta1" -}}
97-
{{- else if semverCompare "<1.19-0" (include "common.capabilities.kubeVersion" .) -}}
98-
{{- print "networking.k8s.io/v1beta1" -}}
99-
{{- else -}}
100-
{{- print "networking.k8s.io/v1" -}}
101-
{{- end -}}
102101
{{- end -}}
103102

104103
{{/*
105104
Return the appropriate apiVersion for RBAC resources.
106105
*/}}
107106
{{- define "common.capabilities.rbac.apiVersion" -}}
108-
{{- if semverCompare "<1.17-0" (include "common.capabilities.kubeVersion" .) -}}
107+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
108+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.17-0" $kubeVersion) -}}
109109
{{- print "rbac.authorization.k8s.io/v1beta1" -}}
110110
{{- else -}}
111111
{{- print "rbac.authorization.k8s.io/v1" -}}
@@ -116,7 +116,8 @@ Return the appropriate apiVersion for RBAC resources.
116116
Return the appropriate apiVersion for CRDs.
117117
*/}}
118118
{{- define "common.capabilities.crd.apiVersion" -}}
119-
{{- if semverCompare "<1.19-0" (include "common.capabilities.kubeVersion" .) -}}
119+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
120+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.19-0" $kubeVersion) -}}
120121
{{- print "apiextensions.k8s.io/v1beta1" -}}
121122
{{- else -}}
122123
{{- print "apiextensions.k8s.io/v1" -}}
@@ -127,7 +128,8 @@ Return the appropriate apiVersion for CRDs.
127128
Return the appropriate apiVersion for APIService.
128129
*/}}
129130
{{- define "common.capabilities.apiService.apiVersion" -}}
130-
{{- if semverCompare "<1.10-0" (include "common.capabilities.kubeVersion" .) -}}
131+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
132+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.10-0" $kubeVersion) -}}
131133
{{- print "apiregistration.k8s.io/v1beta1" -}}
132134
{{- else -}}
133135
{{- print "apiregistration.k8s.io/v1" -}}
@@ -138,7 +140,8 @@ Return the appropriate apiVersion for APIService.
138140
Return the appropriate apiVersion for Horizontal Pod Autoscaler.
139141
*/}}
140142
{{- define "common.capabilities.hpa.apiVersion" -}}
141-
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .context) -}}
143+
{{- $kubeVersion := include "common.capabilities.kubeVersion" .context -}}
144+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.23-0" $kubeVersion) -}}
142145
{{- if .beta2 -}}
143146
{{- print "autoscaling/v2beta2" -}}
144147
{{- else -}}
@@ -153,7 +156,8 @@ Return the appropriate apiVersion for Horizontal Pod Autoscaler.
153156
Return the appropriate apiVersion for Vertical Pod Autoscaler.
154157
*/}}
155158
{{- define "common.capabilities.vpa.apiVersion" -}}
156-
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .context) -}}
159+
{{- $kubeVersion := include "common.capabilities.kubeVersion" .context -}}
160+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.23-0" $kubeVersion) -}}
157161
{{- if .beta2 -}}
158162
{{- print "autoscaling/v2beta2" -}}
159163
{{- else -}}
@@ -168,7 +172,8 @@ Return the appropriate apiVersion for Vertical Pod Autoscaler.
168172
Returns true if PodSecurityPolicy is supported
169173
*/}}
170174
{{- define "common.capabilities.psp.supported" -}}
171-
{{- if semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .) -}}
175+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
176+
{{- if or (empty $kubeVersion) (semverCompare "<1.25-0" $kubeVersion) -}}
172177
{{- true -}}
173178
{{- end -}}
174179
{{- end -}}
@@ -177,7 +182,8 @@ Returns true if PodSecurityPolicy is supported
177182
Returns true if AdmissionConfiguration is supported
178183
*/}}
179184
{{- define "common.capabilities.admissionConfiguration.supported" -}}
180-
{{- if semverCompare ">=1.23-0" (include "common.capabilities.kubeVersion" .) -}}
185+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
186+
{{- if or (empty $kubeVersion) (not (semverCompare "<1.23-0" $kubeVersion)) -}}
181187
{{- true -}}
182188
{{- end -}}
183189
{{- end -}}
@@ -186,9 +192,10 @@ Returns true if AdmissionConfiguration is supported
186192
Return the appropriate apiVersion for AdmissionConfiguration.
187193
*/}}
188194
{{- define "common.capabilities.admissionConfiguration.apiVersion" -}}
189-
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) -}}
195+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
196+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.23-0" $kubeVersion) -}}
190197
{{- print "apiserver.config.k8s.io/v1alpha1" -}}
191-
{{- else if semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .) -}}
198+
{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.25-0" $kubeVersion) -}}
192199
{{- print "apiserver.config.k8s.io/v1beta1" -}}
193200
{{- else -}}
194201
{{- print "apiserver.config.k8s.io/v1" -}}
@@ -199,9 +206,10 @@ Return the appropriate apiVersion for AdmissionConfiguration.
199206
Return the appropriate apiVersion for PodSecurityConfiguration.
200207
*/}}
201208
{{- define "common.capabilities.podSecurityConfiguration.apiVersion" -}}
202-
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) -}}
209+
{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}}
210+
{{- if and (not (empty $kubeVersion)) (semverCompare "<1.23-0" $kubeVersion) -}}
203211
{{- print "pod-security.admission.config.k8s.io/v1alpha1" -}}
204-
{{- else if semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .) -}}
212+
{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.25-0" $kubeVersion) -}}
205213
{{- print "pod-security.admission.config.k8s.io/v1beta1" -}}
206214
{{- else -}}
207215
{{- print "pod-security.admission.config.k8s.io/v1" -}}

charts/redis/charts/common/templates/_compatibility.tpl

+8
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,13 @@ Usage:
3434
{{- end -}}
3535
{{- end -}}
3636
{{- end -}}
37+
{{/* Remove empty seLinuxOptions object if global.compatibility.omitEmptySeLinuxOptions is set to true */}}
38+
{{- if and (((.context.Values.global).compatibility).omitEmptySeLinuxOptions) (not .secContext.seLinuxOptions) -}}
39+
{{- $adaptedContext = omit $adaptedContext "seLinuxOptions" -}}
40+
{{- end -}}
41+
{{/* Remove fields that are disregarded when running the container in privileged mode */}}
42+
{{- if $adaptedContext.privileged -}}
43+
{{- $adaptedContext = omit $adaptedContext "capabilities" "seLinuxOptions" -}}
44+
{{- end -}}
3745
{{- omit $adaptedContext "enabled" | toYaml -}}
3846
{{- end -}}

charts/redis/charts/common/templates/_images.tpl

+10-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@ SPDX-License-Identifier: APACHE-2.0
55

66
{{/* vim: set filetype=mustache: */}}
77
{{/*
8-
Return the proper image name
9-
{{ include "common.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" .Values.global ) }}
8+
Return the proper image name.
9+
If image tag and digest are not defined, termination fallbacks to chart appVersion.
10+
{{ include "common.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" .Values.global "chart" .Chart ) }}
1011
*/}}
1112
{{- define "common.images.image" -}}
1213
{{- $registryName := default .imageRoot.registry ((.global).imageRegistry) -}}
1314
{{- $repositoryName := .imageRoot.repository -}}
1415
{{- $separator := ":" -}}
1516
{{- $termination := .imageRoot.tag | toString -}}
1617

18+
{{- if not .imageRoot.tag }}
19+
{{- if .chart }}
20+
{{- $termination = .chart.AppVersion | toString -}}
21+
{{- end -}}
22+
{{- end -}}
1723
{{- if .imageRoot.digest }}
1824
{{- $separator = "@" -}}
1925
{{- $termination = .imageRoot.digest | toString -}}
@@ -50,7 +56,7 @@ Return the proper Docker Image Registry Secret Names (deprecated: use common.ima
5056
{{- end -}}
5157
{{- end -}}
5258

53-
{{- if (not (empty $pullSecrets)) }}
59+
{{- if (not (empty $pullSecrets)) -}}
5460
imagePullSecrets:
5561
{{- range $pullSecrets | uniq }}
5662
- name: {{ . }}
@@ -84,7 +90,7 @@ Return the proper Docker Image Registry Secret Names evaluating values as templa
8490
{{- end -}}
8591
{{- end -}}
8692

87-
{{- if (not (empty $pullSecrets)) }}
93+
{{- if (not (empty $pullSecrets)) -}}
8894
imagePullSecrets:
8995
{{- range $pullSecrets | uniq }}
9096
- name: {{ . }}

0 commit comments

Comments
 (0)