diff --git a/chart/hub-controller/templates/ingress.yaml b/chart/hub-controller/templates/ingress.yaml index 5ee47a4..bd0d9d8 100644 --- a/chart/hub-controller/templates/ingress.yaml +++ b/chart/hub-controller/templates/ingress.yaml @@ -1,7 +1,7 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "chart.fullname" . -}} {{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 {{- else -}} apiVersion: extensions/v1beta1 {{- end }} diff --git a/chart/hub-controller/templates/ingressHealth.yaml b/chart/hub-controller/templates/ingressHealth.yaml index bd77131..176faa7 100644 --- a/chart/hub-controller/templates/ingressHealth.yaml +++ b/chart/hub-controller/templates/ingressHealth.yaml @@ -1,7 +1,7 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "chart.fullname" . -}} {{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 {{- else -}} apiVersion: extensions/v1beta1 {{- end }}