Skip to content

Commit

Permalink
For RECEPTOR_KUBE_SUPPORT_RECONNECT, Update auto/default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-at-redhat committed Feb 6, 2024
1 parent 414c76d commit 6992c32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/workceptor/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions pkg/workceptor/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestShouldUseReconnect(t *testing.T) {
{
name: "Positive (undefined) test",
envValue: "",
want: false,
want: true,
},
{
name: "Enabled test",
Expand All @@ -33,7 +33,7 @@ func TestShouldUseReconnect(t *testing.T) {
{
name: "Auto test",
envValue: "auto",
want: false,
want: true,
},
{
name: "Default test",
Expand Down

0 comments on commit 6992c32

Please sign in to comment.