File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
internal/controllers/machine Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1400,15 +1400,15 @@ func Test_shouldNodeHaveOutdatedTaint(t *testing.T) {
1400
1400
testMachineDeploymentNew .Annotations = map [string ]string {clusterv1 .RevisionAnnotation : "2" }
1401
1401
1402
1402
testMachineSet := builder .MachineSet (namespaceName , "my-ms" ).
1403
- WithOwnerReferences ([]metav1.OwnerReference {* ownerrefs .OwnerReferenceTo (testMachineDeployment , testMachineDeployment . GroupVersionKind ( ))}).
1403
+ WithOwnerReferences ([]metav1.OwnerReference {* ownerrefs .OwnerReferenceTo (testMachineDeployment , clusterv1 . GroupVersion . WithKind ( "MachineDeployment" ))}).
1404
1404
Build ()
1405
1405
testMachineSet .Annotations = map [string ]string {clusterv1 .RevisionAnnotation : "1" }
1406
1406
1407
1407
labels := map [string ]string {
1408
1408
clusterv1 .MachineDeploymentNameLabel : "my-md" ,
1409
1409
}
1410
1410
testMachine := builder .Machine (namespaceName , "my-machine" ).WithLabels (labels ).Build ()
1411
- testMachine .SetOwnerReferences ([]metav1.OwnerReference {* ownerrefs .OwnerReferenceTo (testMachineSet , testMachineSet . GroupVersionKind ( ))})
1411
+ testMachine .SetOwnerReferences ([]metav1.OwnerReference {* ownerrefs .OwnerReferenceTo (testMachineSet , clusterv1 . GroupVersion . WithKind ( "MachineSet" ))})
1412
1412
1413
1413
tests := []struct {
1414
1414
name string
You can’t perform that action at this time.
0 commit comments