File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 3131 namespace : argocd
3232 # whether to wait for the release to be deployed or not
3333 wait : true
34- # the time to wait for any individual Kubernetes operation (like Jobs for hooks)
34+ # the time to wait for any individual Kubernetes operation (like Jobs for hooks). This defaults to 5m0s
3535 timeout : 5m
3636 # whether to perform a CRD upgrade during installation
3737 upgradeCRDs : true
Original file line number Diff line number Diff line change 3333 namespace : monitoring
3434 # whether to wait for the release to be deployed or not
3535 wait : true
36- # the time to wait for any individual Kubernetes operation (like Jobs for hooks)
36+ # the time to wait for any individual Kubernetes operation (like Jobs for hooks). This defaults to 5m0s
3737 timeout : 5m
3838 # whether to perform a CRD upgrade during installation
3939 upgradeCRDs : true
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ package helm
33import "fmt"
44
55func Validate (param * HelmParam ) []error {
6+ Defaults (param )
7+
68 retErrors := make ([]error , 0 )
79
810 if param .Repo .Name == "" {
@@ -17,3 +19,12 @@ func Validate(param *HelmParam) []error {
1719
1820 return retErrors
1921}
22+
23+ // Defaults set the default value with HelmParam.
24+ // TODO(daniel-hutao): don't call this function insides the Validate()
25+ func Defaults (param * HelmParam ) {
26+ if param .Chart .Timeout == "" {
27+ // Make the timeout be same as the default value for `--timeout` with `helm install/upgrade/rollback`
28+ param .Chart .Timeout = "5m0s"
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments