From 03ed0d0bcf71442076a892dea962b1bdd75ff56a Mon Sep 17 00:00:00 2001 From: Vinicius Pasqualini Carvalho Date: Wed, 12 Mar 2025 12:13:44 +0000 Subject: [PATCH] Update ingress.yaml Replace lookup with .Capabilities.KubeVersion.Version, because the lookup command requires 4 paramaters and was only passed 2 which throws errors when trying to create the ingress. --- charts/metaflow/charts/metaflow-service/templates/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/metaflow/charts/metaflow-service/templates/ingress.yaml b/charts/metaflow/charts/metaflow-service/templates/ingress.yaml index 1d31cb8..940cde5 100644 --- a/charts/metaflow/charts/metaflow-service/templates/ingress.yaml +++ b/charts/metaflow/charts/metaflow-service/templates/ingress.yaml @@ -1,7 +1,7 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "metaflow-service.fullname" . -}} {{- $svcPort := .Values.service.port -}} -{{- $kubeVersion := default "1.14.0" (lookup "version" "") -}} +{{- $kubeVersion := default "1.14.0" .Capabilities.KubeVersion.Version -}} {{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" $kubeVersion)) }} {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}