-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
optimize flag logic about wait #1051
Conversation
@mumoshu Regarding configuration priorities, I feel like we should make some decisions. It's a little unclear at the moment. WDYT? |
@yxxhero There was a lack of test cases here before, we should add them this time. WDYT? |
@xiaomudk I think so. |
Signed-off-by: yxxhero <aiopsclub@163.com>
fab4025
to
a0bade5
Compare
pkg/state/helmx_test.go
Outdated
}{ | ||
{ | ||
name: "release wait for jobs", | ||
release: &ReleaseSpec{WaitForJobs: &[]bool{true, true}[0]}, |
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.
Just one true
?
pkg/state/helmx_test.go
Outdated
}, | ||
{ | ||
name: "release wait for jobs false", | ||
release: &ReleaseSpec{WaitForJobs: &[]bool{false, false}[0]}, |
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.
Just one false
pkg/state/helmx_test.go
Outdated
}{ | ||
{ | ||
name: "release wait", | ||
release: &ReleaseSpec{Wait: &[]bool{true, true}[0]}, |
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.
Just one
pkg/state/helmx_test.go
Outdated
}, | ||
{ | ||
name: "release wait false", | ||
release: &ReleaseSpec{Wait: &[]bool{false, false}[0]}, |
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.
Just one
Signed-off-by: yxxhero <aiopsclub@163.com>
* optimize flag logic about wait Signed-off-by: yxxhero <aiopsclub@163.com> * fix tests Signed-off-by: yxxhero <aiopsclub@163.com> * add units Signed-off-by: yxxhero <aiopsclub@163.com> * fix little issues Signed-off-by: yxxhero <aiopsclub@163.com> --------- Signed-off-by: yxxhero <aiopsclub@163.com> Signed-off-by: Jade Hayes <jade.hayes@dominodatalab.com>
optimize flag logic about wait