Skip to content

Commit 5776fdb

Browse files
authored
[bitnami/haproxy] Update apiVersion of PDB to policy/v1 on 1.21+ cluster (via common.capabilities.policy.apiVersion) (#7368)
* Update apiVersion of PDB to policy/v1 According to https://kubernetes.io/docs/reference/using-api/deprecation-guide/ we can start using `policy/v1` in Kubernetes `1.21. Without that you can observe such things in logs: ``` client.go:209: [debug] checking 5 resources for changes W0901 11:28:35.264440 91 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W0901 11:28:35.269403 91 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W0901 11:28:35.297605 91 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget ``` * use common.capabilities.policy.apiVersion * bump chart version to 0.2.8
1 parent 9134e17 commit 5776fdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bitnami/haproxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ name: haproxy
2323
sources:
2424
- https://github.com/bitnami/bitnami-docker-haproxy
2525
- https://github.com/haproxytech/haproxy
26-
version: 0.2.7
26+
version: 0.2.8

bitnami/haproxy/templates/pdb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.pdb.create }}
2-
apiVersion: policy/v1beta1
2+
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
33
kind: PodDisruptionBudget
44
metadata:
55
name: {{ template "common.names.fullname" . }}

0 commit comments

Comments
 (0)