Skip to content

Commit

Permalink
Fix empty proxy-timeout failure
Browse files Browse the repository at this point in the history
Signed-off-by: Yun Long <[email protected]>
  • Loading branch information
xxx7xxxx committed Mar 9, 2024
1 parent 474996a commit 83addd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/object/ingresscontroller/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (b *pipelineSpecBuilder) addProxy(endpoints []string, ingress *apinetv1.Ing
}

var timeout time.Duration
if proxyTimeout == "" {
if proxyTimeout != "" {
result, err := time.ParseDuration(proxyTimeout)
if err != nil {
return fmt.Errorf("invalid proxy-timeout: %v", err)
Expand Down

0 comments on commit 83addd0

Please sign in to comment.