mirror of
https://github.com/bitnami/charts.git
synced 2026-02-20 12:07:40 +08:00
[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
This commit is contained in:
@@ -23,4 +23,4 @@ name: haproxy
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-haproxy
|
||||
- https://github.com/haproxytech/haproxy
|
||||
version: 0.2.7
|
||||
version: 0.2.8
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{- if .Values.pdb.create }}
|
||||
apiVersion: policy/v1beta1
|
||||
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ template "common.names.fullname" . }}
|
||||
|
||||
Reference in New Issue
Block a user