diff --git a/pkg/workceptor/kubernetes.go b/pkg/workceptor/kubernetes.go index 225ec789a..8e4520472 100644 --- a/pkg/workceptor/kubernetes.go +++ b/pkg/workceptor/kubernetes.go @@ -758,13 +758,13 @@ func shouldUseReconnect() bool { case "disabled": return false case "auto": - // continue + return true default: return false } } - return false + return true } func parseTime(s string) *time.Time { diff --git a/pkg/workceptor/kubernetes_test.go b/pkg/workceptor/kubernetes_test.go index b23ff4b92..23500ede9 100644 --- a/pkg/workceptor/kubernetes_test.go +++ b/pkg/workceptor/kubernetes_test.go @@ -18,7 +18,7 @@ func TestShouldUseReconnect(t *testing.T) { { name: "Positive (undefined) test", envValue: "", - want: false, + want: true, }, { name: "Enabled test", @@ -33,7 +33,7 @@ func TestShouldUseReconnect(t *testing.T) { { name: "Auto test", envValue: "auto", - want: false, + want: true, }, { name: "Default test",