From 22c76d588508b0594c0a971a12f8a0d23cc72842 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Thu, 1 Feb 2024 09:02:42 -0500 Subject: [PATCH] Set the default ingress API Version Fixes #678 With the removal of the `--ingress-api-version` flag in 0.15.0, this value was no longer set and the constructed api URL is incomplete. Signed-off-by: Jeremy Huntwork --- controller.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller.go b/controller.go index d8470a60..152d2ae1 100644 --- a/controller.go +++ b/controller.go @@ -200,6 +200,9 @@ func loadSettings() error { kingpin.Flag("target-cni-pod-labelselector", "AWS VPC CNI only. Defines the labelselector for ingress pods that should be linked to target group. Supports simple equality and multi value form (a=x,b=y) as well as complex forms (a IN (x,y,z).").StringVar(&targetCNIPodLabelSelector) kingpin.Parse() + // We currently only support one Ingress API Version + ingressAPIVersion = kubernetes.IngressAPIVersionNetworking + blacklistCertArnMap = make(map[string]bool) for _, s := range blacklistCertARNs { blacklistCertArnMap[s] = true