From ece5cb394ad5ac346d560377d73a0c6c11d6faf3 Mon Sep 17 00:00:00 2001 From: Karen Schoener Date: Fri, 26 Apr 2024 13:32:11 -0700 Subject: [PATCH] Default ingress to route on openshift On openshift, if skupper init is called with ingress='' or with no ingress param specified, default ingress to route. Fixes #1424 --- cmd/skupper/skupper_kube_site.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/skupper/skupper_kube_site.go b/cmd/skupper/skupper_kube_site.go index 8c53db8a0..20296fd13 100644 --- a/cmd/skupper/skupper_kube_site.go +++ b/cmd/skupper/skupper_kube_site.go @@ -36,7 +36,7 @@ func (s *SkupperKubeSite) Create(cmd *cobra.Command, args []string) error { routerIngressFlag := cmd.Flag("ingress") routerCreateOpts.Platform = s.kube.Platform() - if !routerIngressFlag.Changed { + if !routerIngressFlag.Changed || routerCreateOpts.Ingress == "" { routerCreateOpts.Ingress = cli.GetIngressDefault() } if routerCreateOpts.Ingress == types.IngressNodePortString && routerCreateOpts.IngressHost == "" && routerCreateOpts.Router.IngressHost == "" {