diff --git a/charts/redisoperator/Chart.yaml b/charts/redisoperator/Chart.yaml index 09e1a25cc..f0c330be2 100644 --- a/charts/redisoperator/Chart.yaml +++ b/charts/redisoperator/Chart.yaml @@ -12,3 +12,4 @@ keywords: - "cluster" sources: - https://github.com/spotahome/redis-operator +kubeVersion: '>=1.21.0-0' diff --git a/charts/redisoperator/templates/_versions.tpl b/charts/redisoperator/templates/_versions.tpl index 56f130619..ee2f13929 100644 --- a/charts/redisoperator/templates/_versions.tpl +++ b/charts/redisoperator/templates/_versions.tpl @@ -3,13 +3,7 @@ Return the appropriate apiVersion for deployment. */}} {{- define "common.capabilities.deployment.apiVersion" -}} -{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} {{- print "apps/v1" -}} -{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -{{- print "extensions/v1beta1" -}} -{{- else -}} -{{- print "apps/v1" -}} -{{- end -}} {{- end -}} {{/* @@ -23,4 +17,4 @@ Return the appropriate apiVersion for ingress. {{- else -}} {{- print "networking.k8s.io/v1beta1" -}} {{- end -}} -{{- end -}} \ No newline at end of file +{{- end -}}