mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Don't use Yoda conditions
This commit is contained in:
parent
11f95dc047
commit
4f7d87f72c
@ -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