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 }}