mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 19:38:37 +02:00
fix: pass --timeout flag through to helm for sync and apply (#2495)
* fix: propagate timeout flag Signed-off-by: Hristiyan Ivanov <hristiyan.d.ivanov@gmail.com> * test: add test for propagating timeout flag Signed-off-by: Hristiyan Ivanov <hristiyan.d.ivanov@gmail.com> * feat: add timeout flag to apply command Signed-off-by: Hristiyan Ivanov <hristiyan.d.ivanov@gmail.com> * test: add test for timeout flag for helmfile apply Signed-off-by: Hristiyan Ivanov <hristiyan.d.ivanov@gmail.com> * fix: improve description of timeout flag Signed-off-by: Hristiyan Ivanov <hristiyan.d.ivanov@gmail.com> --------- Signed-off-by: Hristiyan Ivanov <hristiyan.d.ivanov@gmail.com>
This commit is contained in:
@@ -57,6 +57,8 @@ type ApplyOptions struct {
|
||||
WaitRetries int
|
||||
// WaitForJobs is true if the helm command should wait for the jobs to be completed
|
||||
WaitForJobs bool
|
||||
// Timeout is the timeout for helm operations in seconds
|
||||
Timeout int
|
||||
// Propagate '--skip-schema-validation' to helmv3 template and helm install
|
||||
SkipSchemaValidation bool
|
||||
// ReuseValues is true if the helm command should reuse the values
|
||||
@@ -235,6 +237,11 @@ func (a *ApplyImpl) WaitForJobs() bool {
|
||||
return a.ApplyOptions.WaitForJobs
|
||||
}
|
||||
|
||||
// Timeout returns the timeout.
|
||||
func (a *ApplyImpl) Timeout() int {
|
||||
return a.ApplyOptions.Timeout
|
||||
}
|
||||
|
||||
// ReuseValues returns the ReuseValues.
|
||||
func (a *ApplyImpl) ReuseValues() bool {
|
||||
if !a.ResetValues() {
|
||||
|
||||
Reference in New Issue
Block a user