mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Merge pull request #36734 from YuPengZTE/devPunctuation
Automatic merge from submit-queue error strings should not end with punctuation **What this PR does / why we need it**: Delete the end punctuation of error strings **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: https://github.com/golang/go/wiki/CodeReviewComments#error-strings **Release note**: ```release-note ``` Signed-off-by: yupeng <yu.peng36@zte.com.cn>
This commit is contained in:
@@ -183,7 +183,7 @@ func getRemoteKubeletConfig(s *options.KubeletServer, kubeDeps *kubelet.KubeletD
|
||||
if kubeDeps != nil && kubeDeps.Cloud != nil {
|
||||
instances, ok := kubeDeps.Cloud.Instances()
|
||||
if !ok {
|
||||
err = fmt.Errorf("failed to get instances from cloud provider, can't determine nodename.")
|
||||
err = fmt.Errorf("failed to get instances from cloud provider, can't determine nodename")
|
||||
return nil, err
|
||||
}
|
||||
nodename, err = instances.CurrentNodeName(hostname)
|
||||
@@ -754,7 +754,7 @@ func RunKubelet(kubeCfg *componentconfig.KubeletConfiguration, kubeDeps *kubelet
|
||||
// NewMainKubelet should have set up a pod source config if one didn't exist
|
||||
// when the builder was run. This is just a precaution.
|
||||
if kubeDeps.PodConfig == nil {
|
||||
return fmt.Errorf("failed to create kubelet, pod source config was nil!")
|
||||
return fmt.Errorf("failed to create kubelet, pod source config was nil")
|
||||
}
|
||||
podCfg := kubeDeps.PodConfig
|
||||
|
||||
|
||||
Reference in New Issue
Block a user