|
|
@@ -168,7 +168,7 @@ func waitForJob(_ *types.GetAuthenticatedUserResponse, client *api.Client, args
|
|
|
|
|
|
// attempt to parse out the timeout value for the job, given by `sidecar.timeout`
|
|
|
// if it does not exist, we set the default to 30 minutes
|
|
|
- timeoutVal := getJobTimeoutValue(jobRelease.Release.Config)
|
|
|
+ timeoutVal := GetJobTimeoutValue(jobRelease.Release.Config)
|
|
|
|
|
|
color.New(color.FgYellow).Printf("Waiting for timeout seconds %.1f\n", timeoutVal.Seconds())
|
|
|
|
|
|
@@ -229,7 +229,7 @@ func getJobMatchingRevision(revision uint, jobs []v1.Job) *v1.Job {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-func getJobTimeoutValue(values map[string]interface{}) time.Duration {
|
|
|
+func GetJobTimeoutValue(values map[string]interface{}) time.Duration {
|
|
|
defaultTimeout := time.Minute * 60
|
|
|
sidecarInter, ok := values["sidecar"]
|
|
|
|
|
|
@@ -249,7 +249,7 @@ func getJobTimeoutValue(values map[string]interface{}) time.Duration {
|
|
|
return defaultTimeout
|
|
|
}
|
|
|
|
|
|
- timeoutVal, ok := timeoutInter.(int64)
|
|
|
+ timeoutVal, ok := timeoutInter.(float64)
|
|
|
|
|
|
if !ok {
|
|
|
return defaultTimeout
|