Skip to content

Commit

Permalink
Fix empty proxy-timeout failure (#1236)
Browse files Browse the repository at this point in the history
Signed-off-by: Yun Long <[email protected]>
  • Loading branch information
xxx7xxxx authored Mar 9, 2024
1 parent b0490a5 commit 49fda2d
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 49fda2d

Please sign in to comment.