Skip to content

Commit

Permalink
fix: work around API versions issue when deploying with ArgoCD
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-stencel committed Dec 7, 2021
1 parent ce8a2d6 commit eff0bf0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deploy/helm/sumologic/templates/_api_versions_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ apiVersion: {{ include "apiVersion.podDisruptionBudget" . }}
{{- define "apiVersion.podDisruptionBudget" -}}
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
policy/v1
{{- else if .Capabilities.APIVersions.Has "policy/v1beta1/PodDisruptionBudget" -}}
policy/v1beta1
{{- else -}}
{{- fail "\nPodDisruptionBudget not available on the cluster in neither policy/v1/v1beta1 nor in policy/v1/v1beta1 apiVersion" -}}
policy/v1beta1
{{- end -}}
{{- end -}}

0 comments on commit eff0bf0

Please sign in to comment.