mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Don't verify the node password if the local host is not running an agent
Signed-off-by: Oleg Matskiv <oleg.matskiv@gmail.com>
This commit is contained in:
parent
701e7e45ce
commit
e3b237fc35
@ -488,6 +488,11 @@ func passwordBootstrap(ctx context.Context, config *Config) nodePassBootstrapper
|
||||
}
|
||||
|
||||
func verifyLocalPassword(ctx context.Context, config *Config, mu *sync.Mutex, deferredNodes map[string]bool, node *nodeInfo) (string, int, error) {
|
||||
// do not attempt to verify the node password if the local host is not running an agent and does not have a node resource.
|
||||
if config.DisableAgent {
|
||||
return node.Name, http.StatusOK, nil
|
||||
}
|
||||
|
||||
// use same password file location that the agent creates
|
||||
nodePasswordRoot := "/"
|
||||
if config.ControlConfig.Rootless {
|
||||
|
Loading…
Reference in New Issue
Block a user