mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
@@ -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,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 }}
|
||||
|
||||
Reference in New Issue
Block a user