mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Fix netpol startup when flannel is disabled
Don't break out of the poll loop if we can't get the node, RBAC might not be ready yet. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
fae0d99863
commit
86f102134e
@ -75,7 +75,7 @@ func Run(ctx context.Context, nodeConfig *config.Node) error {
|
||||
node, err := client.CoreV1().Nodes().Get(ctx, nodeConfig.AgentConfig.NodeName, metav1.GetOptions{})
|
||||
if err != nil {
|
||||
logrus.Errorf("Error getting the node object: %v", err)
|
||||
return false, err
|
||||
return false, nil
|
||||
}
|
||||
// Check for the uninitialized taint that should be removed by cloud-provider
|
||||
// If there is no cloud-provider, the taint will not be there
|
||||
|
Loading…
Reference in New Issue
Block a user