mirror of
https://github.com/minio/minio.git
synced 2024-12-26 07:05:55 -05:00
fix: network policies in modern k8s versions (#14265)
This commit is contained in:
parent
3c87e1e60d
commit
524fe62594
@ -37,8 +37,10 @@ Return the appropriate apiVersion for networkpolicy.
|
|||||||
{{- define "minio.networkPolicy.apiVersion" -}}
|
{{- define "minio.networkPolicy.apiVersion" -}}
|
||||||
{{- if semverCompare ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.Version -}}
|
{{- if semverCompare ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.Version -}}
|
||||||
{{- print "extensions/v1beta1" -}}
|
{{- print "extensions/v1beta1" -}}
|
||||||
{{- else if semverCompare "^1.7-0" .Capabilities.KubeVersion.Version -}}
|
{{- else if semverCompare ">=1.7-0, <1.16-0" .Capabilities.KubeVersion.Version -}}
|
||||||
{{- print "networking.k8s.io/v1beta1" -}}
|
{{- print "networking.k8s.io/v1beta1" -}}
|
||||||
|
{{- else if semverCompare "^1.16-0" .Capabilities.KubeVersion.Version -}}
|
||||||
|
{{- print "networking.k8s.io/v1" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user