1 parent 30e5a0f commit 0403bf7Copy full SHA for 0403bf7
1 file changed
control-operator/pkg/client/client.go
@@ -69,11 +69,12 @@ func buildConfig(kubeconfigPath string) (*rest.Config, error) {
69
if kubeconfigPath != "" {
70
return clientcmd.BuildConfigFromFlags("", kubeconfigPath)
71
}
72
- if config, err := rest.InClusterConfig(); err == nil {
+ config, err := rest.InClusterConfig()
73
+ if err == nil {
74
return config, nil
75
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)
78
79
80
func (c *Client) CreateTask(ctx context.Context, task *v1alpha1.Task) error {
0 commit comments