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:
|
resources:
|
||||||
- ../../../base/consul
|
- ../../../base/consul
|
||||||
|
|
||||||
patches:
|
|
||||||
- path: patches/consul-server-pdb.yaml
|
|
||||||
target:
|
|
||||||
kind: PodDisruptionBudget
|
|
||||||
name: consul-server
|
|
||||||
|
|
||||||
helmCharts:
|
helmCharts:
|
||||||
- name: consul
|
- name: consul
|
||||||
repo: https://helm.releases.hashicorp.com
|
repo: https://helm.releases.hashicorp.com
|
||||||
@@ -18,3 +12,5 @@ helmCharts:
|
|||||||
releaseName: consul
|
releaseName: consul
|
||||||
namespace: consul
|
namespace: consul
|
||||||
valuesFile: values.yaml
|
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