Skip to content

Commit

Permalink
Merge pull request #487 from panpan0000/master
Browse files Browse the repository at this point in the history
Deployment extensions/v1beta1 deprecated since 1.16, not 1.19
  • Loading branch information
ese authored Sep 22, 2022
2 parents 3353c09 + 4796546 commit 2c37791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions charts/redisoperator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ keywords:
- "cluster"
sources:
- https://github.com/spotahome/redis-operator
kubeVersion: '>=1.21.0-0'
8 changes: 1 addition & 7 deletions charts/redisoperator/templates/_versions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

{{/*
Expand All @@ -23,4 +17,4 @@ Return the appropriate apiVersion for ingress.
{{- else -}}
{{- print "networking.k8s.io/v1beta1" -}}
{{- end -}}
{{- end -}}
{{- end -}}

0 comments on commit 2c37791

Please sign in to comment.