What would you like to be added:
The way to configure plan-preview handling behavior.
Why is this needed:
We have some options in the planpreview package, but they are not used or are only used in the tests.
|
func WithWorkerNum(n int) Option { |
|
return func(opts *options) { |
|
opts.workerNum = n |
|
} |
|
} |
|
|
|
func WithCommandQueueBufferSize(s int) Option { |
|
return func(opts *options) { |
|
opts.commandQueueBufferSize = s |
|
} |
|
} |
|
|
|
func WithCommandCheckInterval(i time.Duration) Option { |
|
return func(opts *options) { |
|
opts.commandCheckInterval = i |
|
} |
|
} |
|
|
|
func WithCommandHandleTimeout(t time.Duration) Option { |
|
return func(opts *options) { |
|
opts.commandHandleTimeout = t |
|
} |
|
} |
What would you like to be added:
The way to configure plan-preview handling behavior.
Why is this needed:
We have some options in the
planpreviewpackage, but they are not used or are only used in the tests.pipecd/pkg/app/piped/planpreview/handler.go
Lines 52 to 74 in d667a1c