-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't override maxWaitTimeout in job spec #619
Don't override maxWaitTimeout in job spec #619
Conversation
6855805
to
9660b87
Compare
pkg/burner/job.go
Outdated
log.Debugf("job.MaxWaitTimeout is zero, override by timeout:%s", timeout) | ||
job.MaxWaitTimeout = timeout | ||
} else { | ||
log.Debugf("job.MaxWaitTimeout is non zero:%s", job.MaxWaitTimeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.Debugf("job.MaxWaitTimeout is zero, override by timeout:%s", timeout) | |
job.MaxWaitTimeout = timeout | |
} else { | |
log.Debugf("job.MaxWaitTimeout is non zero:%s", job.MaxWaitTimeout) | |
log.Debugf("job.MaxWaitTimeout is zero in %s, override by timeout: %s", job.Name, timeout) | |
job.MaxWaitTimeout = timeout | |
} else { | |
log.Debugf("job.MaxWaitTimeout is non zero %s: %s", job.Name, job.MaxWaitTimeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
[root@devnode1 kubelet-density]# grep maxWaitTimeout kubelet-density.yml
maxWaitTimeout: 10m
[root@devnode1 kubelet-density]# kube-burner --log-level debug init -c kubelet-density.yml 2>&1 | grep job.MaxWaitTimeout
time="2024-04-17 08:26:35" level=debug msg="job.MaxWaitTimeout is non zero in kubelet-density: 10m0s" file="job.go:325"
[root@devnode1 kubelet-density]# sed -i 's/maxWaitTimeout/#maxWaitTimeout/g' kubelet-density.yml
[root@devnode1 kubelet-density]# grep maxWaitTimeout kubelet-density.yml
#maxWaitTimeout: 10m
[root@devnode1 kubelet-density]# kube-burner --log-level debug init -c kubelet-density.yml 2>&1 | grep job.MaxWaitTimeout
time="2024-04-17 08:27:24" level=debug msg="job.MaxWaitTimeout is zero in kubelet-density, override by timeout: 4h0m0s" file="job.go:322"
[root@devnode1 kubelet-density]#
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small nits and lgtm :)
Signed-off-by: Shuaiyi Zhang <zhangsy28@lenovo.com>
9660b87
to
fdbee5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
Type of change
Description
job.MaxWaitTimeout
inUnmarshalYAML
job.MaxWaitTimeout
only if it is emptyRelated Tickets & Documents