The first and second CSRs pending approval have the node name
(hostname) embedded in their specs. monitor-add-nodes should only
show CSRs pending approval for a specific node. Currently it shows
all CSRs pending approval for all nodes.
If the IP address of the node cannot be resolved to a hostname,
we will not be able to determine if there are any CSRs pending
approval for that node. The monitoring command will skip showing
CSRs pending approval. In this case, users can still approve the
CSRs, and the monitoring command will continue to check if the node
has joined the cluster and has become Ready.
NewCluster needs both assetDir for install workflow and
kubeconfigPath for addnodes workflow.
Cluster.assetDir should only be initialized for the install
workflow.
Adds the ability to monitor a node being added during day2.
The command is:
node-joiner monitor-add-nodes --kubeconfig <kubeconfig-file-path>
<IP-address-of-node-to-monitor>
Both the kubeconfig file and IP address are required.
Multi node monitoring will be added in a future PR.