Skip to content

Commit

Permalink
Add comment about boostrap ref for MPMs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jont828 committed Feb 22, 2022
1 parent 6962714 commit d64fec0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/clusterctl/client/tree/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func Discovery(ctx context.Context, c client.Client, namespace, name string, opt
tree.Add(m, machineInfra, ObjectMetaName("MachineInfrastructure"), NoEcho(true))
}

// Note: this reference doesn't exist on MachinePool Machines
if machineBootstrap, err := external.Get(ctx, c, m.Spec.Bootstrap.ConfigRef, cluster.Namespace); err == nil {
tree.Add(m, machineBootstrap, ObjectMetaName("BootstrapConfig"), NoEcho(true))
}
Expand Down

0 comments on commit d64fec0

Please sign in to comment.