Skip to content

Commit

Permalink
fix(chart): batch api version
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandonPierre committed Nov 15, 2024
1 parent 99fe20f commit b8a3953
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions charts/authentik/templates/resource-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ roleRef:
name: {{ .Release.Name }}-resource-cleanup-role
apiGroup: rbac.authorization.k8s.io
---
{{- if and .Capabilities (lt (int .Capabilities.KubeVersion.Minor) 25) }}
apiVersion: batch/v1
{{- else }}
{{- if semverCompare "<1.25-0" .Capabilities.KubeVersion.Version }}
apiVersion: batch/v1beta1
{{- else }}
apiVersion: batch/v1
{{- end }}
kind: Job
metadata:
Expand Down
6 changes: 3 additions & 3 deletions charts/authentik/templates/sync-job.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{- range ((.Values.customBlueprints).federation).ldap }}
{{- if (.syncJob).enabled }}
{{- if and .Capabilities (lt (int .Capabilities.KubeVersion.Minor) 25) }}
apiVersion: batch/v1
{{- else }}
{{- if semverCompare "<1.25-0" $.Capabilities.KubeVersion.Version }}
apiVersion: batch/v1beta1
{{- else }}
apiVersion: batch/v1
{{- end }}
kind: CronJob
metadata:
Expand Down

0 comments on commit b8a3953

Please sign in to comment.