Skip to content

Commit

Permalink
fix: liniting error in gatekeeper-controller-manager-poddisruptionbud…
Browse files Browse the repository at this point in the history
…get.yaml

see helm/helm#10149

Signed-off-by: Thomas Berreis <thomas@berreis.de>
  • Loading branch information
tberreis committed Aug 29, 2024
1 parent 6467a1b commit 4f66eb5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
{{- $v1 := .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
{{- $v1beta1 := .Capabilities.APIVersions.Has "policy/v1beta1/PodDisruptionBudget" -}}
{{ $v1 := .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
{{ $v1beta1 := .Capabilities.APIVersions.Has "policy/v1beta1/PodDisruptionBudget" -}}
apiVersion: policy/v1{{- if and (not $v1) $v1beta1 -}}beta1{{- end }}
kind: PodDisruptionBudget
metadata:
Expand Down

0 comments on commit 4f66eb5

Please sign in to comment.