Format duration as string in trial controller
@@ -545,7 +545,7 @@ func createJob(trial *redskyv1alpha1.Trial) *batchv1.Job {
Name: "default-trial-run",
Image: "busybox",
Command: []string{"/bin/sh"},
- Args: []string{"-c", fmt.Sprintf("echo 'Sleeping for %s...' && sleep %.0f && echo 'Done.'", s, s.Seconds())},
+ Args: []string{"-c", fmt.Sprintf("echo 'Sleeping for %s...' && sleep %.0f && echo 'Done.'", s.String(), s.Seconds())},
},
}
}
