fix(consul): use helmCharts.apiVersions to render policy/v1 PDB natively
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful

Pass --api-versions policy/v1/PodDisruptionBudget to helm template so the
consul chart's capability check succeeds and renders policy/v1 directly,
removing the need for an apiVersion patch.
This commit is contained in:
2026-05-23 22:37:58 +10:00
parent 646f4e1af1
commit ed1ecc00cc
2 changed files with 2 additions and 9 deletions
@@ -5,12 +5,6 @@ kind: Kustomization
resources:
- ../../../base/consul
patches:
- path: patches/consul-server-pdb.yaml
target:
kind: PodDisruptionBudget
name: consul-server
helmCharts:
- name: consul
repo: https://helm.releases.hashicorp.com
@@ -18,3 +12,5 @@ helmCharts:
releaseName: consul
namespace: consul
valuesFile: values.yaml
apiVersions:
- policy/v1/PodDisruptionBudget
@@ -1,3 +0,0 @@
- op: replace
path: /apiVersion
value: policy/v1