fix(consul): use helmCharts.apiVersions to render policy/v1 PDB natively
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:
@@ -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
|
||||
Reference in New Issue
Block a user