You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* wip- added ensureIngressClass, getIngressClassFromUserSelect
* added --ingress-class to installation and create git source
* wip
* small change
* added ingressClass to the finalParameters
* filter classes by name label
* add check to ingress class provided by flag
* bypass-ingress-class-check hidden flag (#222)
* added bypass-ingress-class-check hidden flag
* bump
* lint fix
* implement bypass-ingress-class-checks flag
* removes duplicate flag
* removed duplicate flag
* added docs link
* bump
* added link to upgrade error
* docs
* improve after review
* print for debug
* improve strings
* bump
* added err report
* indent
* bump
cmd.Flags().BoolVar(&createRepo, "create-repo", false, "If true, will create the specified git-source repo in case it doesn't already exist")
190
+
cmd.Flags().StringVar(&ingressClass, "ingress-class", "", "The ingress class name")
182
191
cmd.Flags().BoolVar(&store.Get().BypassIngressClassCheck, "bypass-ingress-class-check", false, "Disables the ingress class check during git-source installation")
ifopts.IngressClass!="" { //if user provided ingress class by flag
434
+
ifisValidClass {
435
+
returnnil
436
+
}
437
+
returnfmt.Errorf("Ingress Class '%s' is not supported. Only the ingress class of type NGINX is supported. for more information: %s", opts.IngressClass, store.Get().RequirementsLink)
438
+
}
439
+
440
+
iflen(ingressClassNames) ==0 {
441
+
returnfmt.Errorf("No ingressClasses of type nginx were found. please install a nginx ingress controller on your cluster before installing a runtime. see instructions at: %s", store.Get().RequirementsLink)
err=fmt.Errorf("your cli version is out of date. please upgrade to the latest version before installing")
735
+
err=fmt.Errorf("your cli version is out of date. please upgrade to the latest version before installing. for more information: %s", store.Get().DownloadCliLink)
0 commit comments