mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #20953 from yujuhong/log_error
Auto commit by PR queue bot
This commit is contained in:
commit
6d0e57b711
@ -263,7 +263,14 @@ func UnsecuredKubeletConfig(s *options.KubeletServer) (*KubeletConfig, error) {
|
||||
// Otherwise, the caller is assumed to have set up the KubeletConfig object and all defaults
|
||||
// will be ignored.
|
||||
func Run(s *options.KubeletServer, kcfg *KubeletConfig) error {
|
||||
var err error
|
||||
err := run(s, kcfg)
|
||||
if err != nil {
|
||||
glog.Errorf("Failed running kubelet: %v", err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func run(s *options.KubeletServer, kcfg *KubeletConfig) (err error) {
|
||||
if s.LockFilePath != "" {
|
||||
glog.Infof("aquiring lock on %q", s.LockFilePath)
|
||||
if err := flock.Acquire(s.LockFilePath); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user