You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// check that the referenced object has the ClusterTopologyOwnedLabel label.
248
+
// Nb. This is to make sure that a managed topology cluster does not have a reference to an object that is not
249
+
// owned by the topology.
250
+
if!labels.IsTopologyOwned(bootstrapTemplate) {
251
+
returnnil, fmt.Errorf("%s %s referenced from MachineDeployment %s is not topology owned", bootstrapTemplate.GetKind(), klog.KObj(bootstrapTemplate), klog.KObj(m))
returnnil, errors.Wrap(err, fmt.Sprintf("MachineDeployment %s Bootstrap reference could not be retrieved", klog.KObj(m)))
241
-
}
242
-
// check that the referenced object has the ClusterTopologyOwnedLabel label.
243
-
// Nb. This is to make sure that a managed topology cluster does not have a reference to an object that is not
244
-
// owned by the topology.
245
-
if!labels.IsTopologyOwned(bootstrapTemplate) {
246
-
returnnil, fmt.Errorf("%s %s referenced from MachineDeployment %s is not topology owned", bootstrapTemplate.GetKind(), klog.KObj(bootstrapTemplate), klog.KObj(m))
returnnil, errors.Wrap(err, fmt.Sprintf("MachineDeployment %s Infrastructure reference could not be retrieved", klog.KObj(m)))
253
-
}
254
-
// check that the referenced object has the ClusterTopologyOwnedLabel label.
255
-
// Nb. This is to make sure that a managed topology cluster does not have a reference to an object that is not
256
-
// owned by the topology.
257
-
if!labels.IsTopologyOwned(infraMachineTemplate) {
258
-
returnnil, fmt.Errorf("%s %s referenced from MachineDeployment %s is not topology owned", infraMachineTemplate.GetKind(), klog.KObj(infraMachineTemplate), klog.KObj(m))
259
+
// check that the referenced object has the ClusterTopologyOwnedLabel label.
260
+
// Nb. This is to make sure that a managed topology cluster does not have a reference to an object that is not
261
+
// owned by the topology.
262
+
if!labels.IsTopologyOwned(infraMachineTemplate) {
263
+
returnnil, fmt.Errorf("%s %s referenced from MachineDeployment %s is not topology owned", infraMachineTemplate.GetKind(), klog.KObj(infraMachineTemplate), klog.KObj(m))
0 commit comments