Skip to content

Commit

Permalink
Deployment extensions/v1beta1 deprecated since 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
panpan0000 committed Sep 21, 2022
1 parent b8a671c commit b4b0b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/redisoperator/templates/_versions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Return the appropriate apiVersion for deployment.
*/}}
{{- define "common.capabilities.deployment.apiVersion" -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "apps/v1" -}}
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "extensions/v1beta1" -}}
Expand All @@ -23,4 +23,4 @@ Return the appropriate apiVersion for ingress.
{{- else -}}
{{- print "networking.k8s.io/v1beta1" -}}
{{- end -}}
{{- end -}}
{{- end -}}

0 comments on commit b4b0b6f

Please sign in to comment.