From 4d29f38b01bd1be3f5bb6474034a09a62fc88f53 Mon Sep 17 00:00:00 2001 From: Cameron Attard Date: Fri, 5 Jun 2020 09:19:45 +1000 Subject: [PATCH] [stable/cerebro] add conditional ingress apiVersion to replace to-be-deprecated extensions/v1beta1 (#22629) Signed-off-by: Cameron Attard --- stable/cerebro/Chart.yaml | 2 +- stable/cerebro/templates/ingress.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/cerebro/Chart.yaml b/stable/cerebro/Chart.yaml index c8474e7ad6..3d126ba657 100644 --- a/stable/cerebro/Chart.yaml +++ b/stable/cerebro/Chart.yaml @@ -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. diff --git a/stable/cerebro/templates/ingress.yaml b/stable/cerebro/templates/ingress.yaml index 79f37534e6..a4f830611f 100644 --- a/stable/cerebro/templates/ingress.yaml +++ b/stable/cerebro/templates/ingress.yaml @@ -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 }}