Open pmalek opened 10 months ago
Nothing really important, but I tested both Subcharts.gateway.Values
and .Values.gateway
and they give the same data (validation fails as expected). I have no idea which way is the good way as I couldn't find documentation for any. 😬
--- a/charts/ingress/templates/_helpers.tpl
+++ b/charts/ingress/templates/_helpers.tpl
@@ -1,6 +1,6 @@
{{- define "ingressController.enforceGatewayRouterFlavorFor3_0AndUp" -}}
-{{ $gatewayValues := .Subcharts.gateway.Values }}
-{{ $controllerValues := .Subcharts.controller.Values }}
+{{ $gatewayValues := .Values.gateway }}
+{{ $controllerValues := .Values.controller }}
What this PR does / why we need it:
Use an obscure
.Subcharts
variable to get subcharts values and based on that enforce theexpressions
router flavor in Kong Gateway when KIC v3.0+ is used