Skip to content

Commit

Permalink
[stable/k8s-resources]: k8s 1.25 update cronjob deprecated apiversion (
Browse files Browse the repository at this point in the history
  • Loading branch information
msalman899 committed Aug 15, 2023
1 parent 57cf1b0 commit 95d0306
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/k8s-resources/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 0.6.3
version: 0.6.4
appVersion: 0.0.1
name: k8s-resources
description: |
Expand Down
2 changes: 1 addition & 1 deletion stable/k8s-resources/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# k8s-resources

![Version: 0.6.3](https://img.shields.io/badge/Version-0.6.3-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)
![Version: 0.6.4](https://img.shields.io/badge/Version-0.6.4-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)

Not an application but a Helm chart to create any and many resources in Kubernetes.

Expand Down
4 changes: 4 additions & 0 deletions stable/k8s-resources/templates/cronjob.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{{- if .Values.CronJobs -}}
{{- range .Values.CronJobs }}
{{- if semverCompare ">=1.25-0" $.Capabilities.KubeVersion.GitVersion -}}
apiVersion: batch/v1
{{- else -}}
apiVersion: batch/v1beta1
{{- end }}
kind: CronJob
metadata:
{{- if .namespace }}
Expand Down

0 comments on commit 95d0306

Please sign in to comment.