mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Merge pull request #118456 from testwill/bool-constant
chore: omit comparison to bool constant
This commit is contained in:
commit
7658fe8dc4
@ -354,7 +354,7 @@ func copyFileLogs(ctx context.Context, w io.Writer, services []string) {
|
||||
// in that order stopping on first success.
|
||||
func heuristicsCopyFileLogs(ctx context.Context, w io.Writer, service string) {
|
||||
logFileNames := [3]string{
|
||||
fmt.Sprintf("%s", service),
|
||||
service,
|
||||
fmt.Sprintf("%s.log", service),
|
||||
fmt.Sprintf("%s/%s.log", service, service),
|
||||
}
|
||||
|
@ -429,7 +429,7 @@ func waitForPodResizeActuation(c clientset.Interface, podClient *e2epod.PodClien
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if verifyPodAllocations(pod, expectedContainers, false) == false {
|
||||
if !verifyPodAllocations(pod, expectedContainers, false) {
|
||||
continue
|
||||
}
|
||||
return pod, nil
|
||||
@ -438,7 +438,7 @@ func waitForPodResizeActuation(c clientset.Interface, podClient *e2epod.PodClien
|
||||
}
|
||||
waitContainerCgroupValuesEqualsExpected := func() error {
|
||||
for start := time.Now(); time.Since(start) < PollTimeout; time.Sleep(PollInterval) {
|
||||
if verifyPodContainersCgroupValues(patchedPod, expectedContainers, false) == false {
|
||||
if !verifyPodContainersCgroupValues(patchedPod, expectedContainers, false) {
|
||||
continue
|
||||
}
|
||||
return nil
|
||||
|
@ -226,7 +226,7 @@ func findWindowsNode(ctx context.Context, f *framework.Framework) (v1.Node, erro
|
||||
}
|
||||
}
|
||||
|
||||
if foundNode == false {
|
||||
if !foundNode {
|
||||
e2eskipper.Skipf("Could not find and ready and schedulable Windows nodes")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user