Commit c7e6922a authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

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: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent de2df8aa
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment