From eff0bf0d2edef2722ace498ffd9379a2a8e4e4c1 Mon Sep 17 00:00:00 2001 From: Andrzej Stencel Date: Tue, 7 Dec 2021 10:03:13 +0100 Subject: [PATCH] fix: work around API versions issue when deploying with ArgoCD See https://github.com/argoproj/argo-cd/issues/7291 --- deploy/helm/sumologic/templates/_api_versions_helpers.tpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deploy/helm/sumologic/templates/_api_versions_helpers.tpl b/deploy/helm/sumologic/templates/_api_versions_helpers.tpl index dbe0fb226f..8b55ef7c0d 100644 --- a/deploy/helm/sumologic/templates/_api_versions_helpers.tpl +++ b/deploy/helm/sumologic/templates/_api_versions_helpers.tpl @@ -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 -}}