Skip to content

Commit

Permalink
Use Capabilities as new versions of OpenShift provide batch/v1 (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvarin authored Jan 18, 2024
1 parent b4958f8 commit 1d3cebd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions deployment/templates/wes/celery-tmp-cleaner.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{ if .Values.celeryWorker.tmpCleaner }}
{{ if ne .Values.clusterType "kubernetes" }}
apiVersion: batch/v1beta1
{{ else }}
{{ if .Capabilities.APIVersions.Has "batch/v1" }}
apiVersion: batch/v1
{{ else }}
apiVersion: batch/v1beta1
{{ end }}
kind: CronJob
metadata:
Expand Down
6 changes: 3 additions & 3 deletions deployment/templates/wes/wes-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ status:
loadBalancer: {}

---
{{ if ne .Values.clusterType "kubernetes" }}
apiVersion: batch/v1beta1
{{ else }}
{{ if .Capabilities.APIVersions.Has "batch/v1" }}
apiVersion: batch/v1
{{ else }}
apiVersion: batch/v1beta1
{{ end }}
kind: CronJob
metadata:
Expand Down

0 comments on commit 1d3cebd

Please sign in to comment.