[stable/cerebro] add conditional ingress apiVersion to replace to-be-deprecated extensions/v1beta1 (#22629)

Signed-off-by: Cameron Attard <cameron.attard@siteminder.com>
This commit is contained in:
Cameron Attard
2020-06-04 16:19:45 -07:00
committed by GitHub
parent 5828c5ec81
commit 4d29f38b01
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: cerebro
version: 1.8.1
version: 1.8.2
appVersion: 0.9.0
apiVersion: v1
description: A Helm chart for Cerebro - a web admin tool that replaces Kopf.
+1 -1
View File
@@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "cerebro.fullname" . -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: extensions/v1beta1
apiVersion: {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} networking.k8s.io/v1beta1 {{- else }} extensions/v1beta1 {{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}