fix: helm missing console ingress apiVersion

fixes #13049
This commit is contained in:
Harshavardhana
2021-08-24 11:57:12 -07:00
parent 60394ddf83
commit 5eb6f903f2
4 changed files with 35 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: v1
description: High Performance, Kubernetes Native Object Storage
name: minio
version: 1.0.1
version: 1.0.2
appVersion: RELEASE.2021-08-20T18-32-01Z
keywords:
- storage

View File

@@ -75,6 +75,17 @@ Return the appropriate apiVersion for ingress.
{{- end -}}
{{- end -}}
{{/*
Return the appropriate apiVersion for console ingress.
*/}}
{{- define "minio.consoleIngress.apiVersion" -}}
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "extensions/v1beta1" -}}
{{- else -}}
{{- print "networking.k8s.io/v1beta1" -}}
{{- end -}}
{{- end -}}
{{/*
Determine secret name.
*/}}