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 f678ca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- feat(helm): add fluentd init containers [#1928][#1928]
- Add support for GKE 1.21 [#1907][#1907]
- feat: add affinity to fluentd events statefulset [#1895][#1895]
- feat(helm): add PodDisruptionBudget api version helm chart helpers [#1865][#1865]
- feat: add option to disable `service` enrichment [#1936](#1936)
- feat(helm): add PodDisruptionBudget api version helm chart helpers [#1865][#1865] [#1943][#1943]
- feat: add option to disable `service` enrichment [#1936][#1936]

### Changed

Expand Down Expand Up @@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#1927]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1927
[#1928]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1928
[#1936]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1936
[#1943]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1943

## [v2.2.0][v2_2_0] - 2021-11-17

Expand Down
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 f678ca2

Please sign in to comment.