mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +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.
|
// in that order stopping on first success.
|
||||||
func heuristicsCopyFileLogs(ctx context.Context, w io.Writer, service string) {
|
func heuristicsCopyFileLogs(ctx context.Context, w io.Writer, service string) {
|
||||||
logFileNames := [3]string{
|
logFileNames := [3]string{
|
||||||
fmt.Sprintf("%s", service),
|
service,
|
||||||
fmt.Sprintf("%s.log", service),
|
fmt.Sprintf("%s.log", service),
|
||||||
fmt.Sprintf("%s/%s.log", service, service),
|
fmt.Sprintf("%s/%s.log", service, service),
|
||||||
}
|
}
|
||||||
|
@ -429,7 +429,7 @@ func waitForPodResizeActuation(c clientset.Interface, podClient *e2epod.PodClien
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if verifyPodAllocations(pod, expectedContainers, false) == false {
|
if !verifyPodAllocations(pod, expectedContainers, false) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return pod, nil
|
return pod, nil
|
||||||
@ -438,7 +438,7 @@ func waitForPodResizeActuation(c clientset.Interface, podClient *e2epod.PodClien
|
|||||||
}
|
}
|
||||||
waitContainerCgroupValuesEqualsExpected := func() error {
|
waitContainerCgroupValuesEqualsExpected := func() error {
|
||||||
for start := time.Now(); time.Since(start) < PollTimeout; time.Sleep(PollInterval) {
|
for start := time.Now(); time.Since(start) < PollTimeout; time.Sleep(PollInterval) {
|
||||||
if verifyPodContainersCgroupValues(patchedPod, expectedContainers, false) == false {
|
if !verifyPodContainersCgroupValues(patchedPod, expectedContainers, false) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return nil
|
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")
|
e2eskipper.Skipf("Could not find and ready and schedulable Windows nodes")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user