Skip to content

Commit 0403bf7

Browse files
committed
fixup! [OCTRL-1090] watch from Version and List by label added to control-operator client
1 parent 30e5a0f commit 0403bf7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

control-operator/pkg/client/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ func buildConfig(kubeconfigPath string) (*rest.Config, error) {
6969
if kubeconfigPath != "" {
7070
return clientcmd.BuildConfigFromFlags("", kubeconfigPath)
7171
}
72-
if config, err := rest.InClusterConfig(); err == nil {
72+
config, err := rest.InClusterConfig()
73+
if err == nil {
7374
return config, nil
7475
}
7576

76-
return nil, fmt.Errorf("ECS isn't running in a container and you didn't pass any kubernetes config")
77+
return nil, fmt.Errorf("ECS isn't running in a container and you didn't pass any kubernetes config: %v", err)
7778
}
7879

7980
func (c *Client) CreateTask(ctx context.Context, task *v1alpha1.Task) error {

0 commit comments

Comments
 (0)