@@ -2,12 +2,11 @@ package setup
2
2
3
3
import (
4
4
"context"
5
+ "errors"
5
6
"fmt"
6
7
"sort"
7
8
"strings"
8
9
9
- "errors"
10
-
11
10
"github.com/solo-io/gloo/pkg/utils/envutils"
12
11
"github.com/solo-io/gloo/pkg/utils/setuputils"
13
12
gloostatusutils "github.com/solo-io/gloo/pkg/utils/statusutils"
@@ -43,9 +42,7 @@ import (
43
42
ctrl "sigs.k8s.io/controller-runtime"
44
43
)
45
44
46
- var (
47
- settingsGVR = glookubev1 .SchemeGroupVersion .WithResource ("settings" )
48
- )
45
+ var settingsGVR = glookubev1 .SchemeGroupVersion .WithResource ("settings" )
49
46
50
47
func createKubeClient (restConfig * rest.Config ) (istiokube.Client , error ) {
51
48
restCfg := istiokube .NewClientConfigForRestConfig (restConfig )
@@ -77,15 +74,14 @@ func getInitialSettings(ctx context.Context, c istiokube.Client, nns types.Names
77
74
return nil
78
75
}
79
76
return out
80
-
81
77
}
82
78
83
79
func StartGGv2 (ctx context.Context ,
84
80
setupOpts * bootstrap.SetupOpts ,
85
81
uccBuilder krtcollections.UniquelyConnectedClientsBulider ,
86
82
extensionsFactory extensions.K8sGatewayExtensionsFactory ,
87
- pluginRegistryFactory func (opts registry.PluginOpts ) plugins.PluginRegistryFactory ) error {
88
-
83
+ pluginRegistryFactory func (opts registry.PluginOpts ) plugins.PluginRegistryFactory ,
84
+ ) error {
89
85
restConfig := ctrl .GetConfigOrDie ()
90
86
91
87
return StartGGv2WithConfig (ctx , setupOpts , restConfig , uccBuilder , extensionsFactory , pluginRegistryFactory , setuputils .SetupNamespaceName ())
@@ -164,6 +160,7 @@ func StartGGv2WithConfig(ctx context.Context,
164
160
Debugger : setupOpts .KrtDebugger ,
165
161
})
166
162
if err != nil {
163
+ logger .Error ("failed initializing controller: " , err )
167
164
return err
168
165
}
169
166
/// no collections after this point
0 commit comments