From bed6b04a3f51342e1b5ab7a4704f500b1032f631 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Wed, 25 Jan 2023 11:27:51 +0100 Subject: [PATCH] chore(helm): Update helm check for kube version --- .../helmcharts/databases/charts/clickhouse/templates/cron.yaml | 2 +- .../openreplay/charts/utilities/templates/efs-cron.yaml | 2 +- .../openreplay/charts/utilities/templates/report-cron.yaml | 2 +- .../charts/utilities/templates/sessions-cleaner-cron.yaml | 2 +- .../openreplay/charts/utilities/templates/telemetry-cron.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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 }}