mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #100920 from navist2020/fix/Yoda
Don't use Yoda conditions
This commit is contained in:
commit
13e9c24db4
@ -225,7 +225,7 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kubeletConfig.KubeletCgroups != "" && kubeletConfig.KubeReservedCgroup != "") && (0 != strings.Index(kubeletConfig.KubeletCgroups, kubeletConfig.KubeReservedCgroup)) {
|
if (kubeletConfig.KubeletCgroups != "" && kubeletConfig.KubeReservedCgroup != "") && (strings.Index(kubeletConfig.KubeletCgroups, kubeletConfig.KubeReservedCgroup) != 0) {
|
||||||
klog.InfoS("unsupported configuration:KubeletCgroups is not within KubeReservedCgroup")
|
klog.InfoS("unsupported configuration:KubeletCgroups is not within KubeReservedCgroup")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user