diff --git a/scripts/helmcharts/databases/charts/clickhouse/templates/cron.yaml b/scripts/helmcharts/databases/charts/clickhouse/templates/cron.yaml index d0a8b05ca..1ae3d48cb 100644 --- a/scripts/helmcharts/databases/charts/clickhouse/templates/cron.yaml +++ b/scripts/helmcharts/databases/charts/clickhouse/templates/cron.yaml @@ -1,5 +1,5 @@ # https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/ -{{- $kubeTargetVersion := .Capabilities.KubeVersion.GitVersion }} +{{- $kubeTargetVersion := .Capabilities.KubeVersion.Version }} {{- if semverCompare ">=1.22.0-0" $kubeTargetVersion }} apiVersion: batch/v1 {{- else }} diff --git a/scripts/helmcharts/openreplay/charts/utilities/templates/efs-cron.yaml b/scripts/helmcharts/openreplay/charts/utilities/templates/efs-cron.yaml index 31b6caea8..ce423e5e8 100644 --- a/scripts/helmcharts/openreplay/charts/utilities/templates/efs-cron.yaml +++ b/scripts/helmcharts/openreplay/charts/utilities/templates/efs-cron.yaml @@ -1,4 +1,4 @@ -{{- $kubeTargetVersion := .Capabilities.KubeVersion.GitVersion }} +{{- $kubeTargetVersion := .Capabilities.KubeVersion.Version }} {{- if semverCompare ">=1.22.0-0" $kubeTargetVersion }} apiVersion: batch/v1 {{- else }} diff --git a/scripts/helmcharts/openreplay/charts/utilities/templates/report-cron.yaml b/scripts/helmcharts/openreplay/charts/utilities/templates/report-cron.yaml index b3f258df4..ea1a8cd4c 100644 --- a/scripts/helmcharts/openreplay/charts/utilities/templates/report-cron.yaml +++ b/scripts/helmcharts/openreplay/charts/utilities/templates/report-cron.yaml @@ -1,5 +1,5 @@ {{- if .Values.global.enterpriseEditionLicense }} -{{- $kubeTargetVersion := .Capabilities.KubeVersion.GitVersion }} +{{- $kubeTargetVersion := .Capabilities.KubeVersion.Version }} {{- if semverCompare ">=1.22.0-0" $kubeTargetVersion }} apiVersion: batch/v1 {{- else }} diff --git a/scripts/helmcharts/openreplay/charts/utilities/templates/sessions-cleaner-cron.yaml b/scripts/helmcharts/openreplay/charts/utilities/templates/sessions-cleaner-cron.yaml index d724d44cc..f724151dc 100644 --- a/scripts/helmcharts/openreplay/charts/utilities/templates/sessions-cleaner-cron.yaml +++ b/scripts/helmcharts/openreplay/charts/utilities/templates/sessions-cleaner-cron.yaml @@ -1,5 +1,5 @@ {{- if .Values.global.enterpriseEditionLicense }} -{{- $kubeTargetVersion := .Capabilities.KubeVersion.GitVersion }} +{{- $kubeTargetVersion := .Capabilities.KubeVersion.Version }} {{- if semverCompare ">=1.22.0-0" $kubeTargetVersion }} apiVersion: batch/v1 {{- else }} diff --git a/scripts/helmcharts/openreplay/charts/utilities/templates/telemetry-cron.yaml b/scripts/helmcharts/openreplay/charts/utilities/templates/telemetry-cron.yaml index 2ada4cd10..0121e0ba3 100644 --- a/scripts/helmcharts/openreplay/charts/utilities/templates/telemetry-cron.yaml +++ b/scripts/helmcharts/openreplay/charts/utilities/templates/telemetry-cron.yaml @@ -1,5 +1,5 @@ {{- if .Values.global.enterpriseEditionLicense }} -{{- $kubeTargetVersion := .Capabilities.KubeVersion.GitVersion }} +{{- $kubeTargetVersion := .Capabilities.KubeVersion.Version }} {{- if semverCompare ">=1.22.0-0" $kubeTargetVersion }} apiVersion: batch/v1 {{- else }}