@@ -54,7 +54,7 @@ var moveTests = []struct {
54
54
// owned by Clusters
55
55
"/v1, Kind=Secret, ns1/foo-ca" ,
56
56
"/v1, Kind=Secret, ns1/foo-kubeconfig" ,
57
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/foo" ,
57
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/foo" ,
58
58
},
59
59
},
60
60
wantErr : false ,
@@ -78,17 +78,17 @@ var moveTests = []struct {
78
78
"/v1, Kind=Secret, ns1/cluster1-ca" ,
79
79
"cluster.x-k8s.io/v1alpha3, Kind=Machine, ns1/m1" ,
80
80
"cluster.x-k8s.io/v1alpha3, Kind=Machine, ns1/m2" ,
81
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/cluster1" ,
81
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/cluster1" ,
82
82
},
83
83
{ //group 3 (objects with ownerReferences in group 1,2)
84
84
// owned by Machines
85
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/m1" ,
86
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/m2" ,
87
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/m1" ,
88
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/m2" ,
85
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/m1" ,
86
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/m2" ,
87
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/m1" ,
88
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/m2" ,
89
89
},
90
90
{ //group 4 (objects with ownerReferences in group 1,2,3)
91
- // owned by DummyBootstrapConfigs
91
+ // owned by GenericBootstrapConfigs
92
92
"/v1, Kind=Secret, ns1/cluster1-sa" ,
93
93
"/v1, Kind=Secret, ns1/m1" ,
94
94
"/v1, Kind=Secret, ns1/m2" ,
@@ -116,10 +116,10 @@ var moveTests = []struct {
116
116
// owned by Clusters
117
117
"/v1, Kind=Secret, ns1/cluster1-ca" ,
118
118
"/v1, Kind=Secret, ns1/cluster1-kubeconfig" ,
119
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfigTemplate , ns1/ms1" ,
119
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfigTemplate , ns1/ms1" ,
120
120
"cluster.x-k8s.io/v1alpha3, Kind=MachineSet, ns1/ms1" ,
121
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/cluster1" ,
122
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachineTemplate , ns1/ms1" ,
121
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/cluster1" ,
122
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachineTemplate , ns1/ms1" ,
123
123
},
124
124
{ //group 3 (objects with ownerReferences in group 1,2)
125
125
// owned by MachineSets
@@ -128,13 +128,13 @@ var moveTests = []struct {
128
128
},
129
129
{ //group 4 (objects with ownerReferences in group 1,2,3)
130
130
// owned by Machines
131
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/m1" ,
132
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/m2" ,
133
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/m1" ,
134
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/m2" ,
131
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/m1" ,
132
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/m2" ,
133
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/m1" ,
134
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/m2" ,
135
135
},
136
136
{ //group 5 (objects with ownerReferences in group 1,2,3,4)
137
- // owned by DummyBootstrapConfigs
137
+ // owned by GenericBootstrapConfigs
138
138
"/v1, Kind=Secret, ns1/m1" ,
139
139
"/v1, Kind=Secret, ns1/m2" ,
140
140
},
@@ -164,10 +164,10 @@ var moveTests = []struct {
164
164
// owned by Clusters
165
165
"/v1, Kind=Secret, ns1/cluster1-ca" ,
166
166
"/v1, Kind=Secret, ns1/cluster1-kubeconfig" ,
167
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfigTemplate , ns1/md1" ,
167
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfigTemplate , ns1/md1" ,
168
168
"cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment, ns1/md1" ,
169
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/cluster1" ,
170
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachineTemplate , ns1/md1" ,
169
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/cluster1" ,
170
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachineTemplate , ns1/md1" ,
171
171
},
172
172
{ //group 3 (objects with ownerReferences in group 1,2)
173
173
// owned by MachineDeployments
@@ -180,13 +180,13 @@ var moveTests = []struct {
180
180
},
181
181
{ //group 5 (objects with ownerReferences in group 1,2,3,4)
182
182
// owned by Machines
183
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/m1" ,
184
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/m2" ,
185
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/m1" ,
186
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/m2" ,
183
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/m1" ,
184
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/m2" ,
185
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/m1" ,
186
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/m2" ,
187
187
},
188
188
{ //group 6 (objects with ownerReferences in group 1,2,3,5,6)
189
- // owned by DummyBootstrapConfigs
189
+ // owned by GenericBootstrapConfigs
190
190
"/v1, Kind=Secret, ns1/m1" ,
191
191
"/v1, Kind=Secret, ns1/m2" ,
192
192
},
@@ -212,9 +212,9 @@ var moveTests = []struct {
212
212
{ //group 2 (objects with ownerReferences in group 1)
213
213
// owned by Clusters
214
214
"/v1, Kind=Secret, ns1/cluster1-ca" ,
215
- "controlplane.cluster.x-k8s.io/v1alpha3, Kind=DummyControlPlane , ns1/cp1" ,
216
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/cluster1" ,
217
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachineTemplate , ns1/cp1" ,
215
+ "controlplane.cluster.x-k8s.io/v1alpha3, Kind=GenericControlPlane , ns1/cp1" ,
216
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/cluster1" ,
217
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachineTemplate , ns1/cp1" ,
218
218
},
219
219
{ //group 3 (objects with ownerReferences in group 1,2)
220
220
"/v1, Kind=Secret, ns1/cluster1-kubeconfig" ,
@@ -224,13 +224,13 @@ var moveTests = []struct {
224
224
},
225
225
{ //group 4 (objects with ownerReferences in group 1,2,3)
226
226
// owned by Machines
227
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/m1" ,
228
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/m2" ,
229
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/m1" ,
230
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/m2" ,
227
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/m1" ,
228
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/m2" ,
229
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/m1" ,
230
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/m2" ,
231
231
},
232
232
{ //group 5 (objects with ownerReferences in group 1,2,3,4)
233
- // owned by DummyBootstrapConfigs
233
+ // owned by GenericBootstrapConfigs
234
234
"/v1, Kind=Secret, ns1/m1" ,
235
235
"/v1, Kind=Secret, ns1/m2" ,
236
236
},
@@ -253,10 +253,10 @@ var moveTests = []struct {
253
253
// owned by Clusters
254
254
"/v1, Kind=Secret, ns1/cluster1-ca" ,
255
255
"/v1, Kind=Secret, ns1/cluster1-kubeconfig" ,
256
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfigTemplate , ns1/mp1" ,
256
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfigTemplate , ns1/mp1" ,
257
257
"exp.cluster.x-k8s.io/v1alpha3, Kind=MachinePool, ns1/mp1" ,
258
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/cluster1" ,
259
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachineTemplate , ns1/mp1" ,
258
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/cluster1" ,
259
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachineTemplate , ns1/mp1" ,
260
260
},
261
261
},
262
262
wantErr : false ,
@@ -280,10 +280,10 @@ var moveTests = []struct {
280
280
// owned by Clusters
281
281
"/v1, Kind=Secret, ns1/foo-ca" ,
282
282
"/v1, Kind=Secret, ns1/foo-kubeconfig" ,
283
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/foo" ,
283
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/foo" ,
284
284
"/v1, Kind=Secret, ns1/bar-ca" ,
285
285
"/v1, Kind=Secret, ns1/bar-kubeconfig" ,
286
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/bar" ,
286
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/bar" ,
287
287
},
288
288
},
289
289
},
@@ -327,15 +327,15 @@ var moveTests = []struct {
327
327
// owned by Clusters
328
328
"/v1, Kind=Secret, ns1/cluster1-ca" ,
329
329
"/v1, Kind=Secret, ns1/cluster1-kubeconfig" ,
330
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfigTemplate , ns1/cluster1-ms1" ,
330
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfigTemplate , ns1/cluster1-ms1" ,
331
331
"cluster.x-k8s.io/v1alpha3, Kind=MachineSet, ns1/cluster1-ms1" ,
332
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/cluster1" ,
332
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/cluster1" ,
333
333
"/v1, Kind=Secret, ns1/cluster2-ca" ,
334
334
"/v1, Kind=Secret, ns1/cluster2-kubeconfig" ,
335
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfigTemplate , ns1/cluster2-ms1" ,
335
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfigTemplate , ns1/cluster2-ms1" ,
336
336
"cluster.x-k8s.io/v1alpha3, Kind=MachineSet, ns1/cluster2-ms1" ,
337
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureCluster , ns1/cluster2" ,
338
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachineTemplate , ns1/shared" , //shared object
337
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureCluster , ns1/cluster2" ,
338
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachineTemplate , ns1/shared" , //shared object
339
339
},
340
340
{ //group 3 (objects with ownerReferences in group 1,2)
341
341
// owned by MachineSets
@@ -344,13 +344,13 @@ var moveTests = []struct {
344
344
},
345
345
{ //group 4 (objects with ownerReferences in group 1,2,3)
346
346
// owned by Machines
347
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/cluster1-m1" ,
348
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/cluster1-m1" ,
349
- "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=DummyBootstrapConfig , ns1/cluster2-m1" ,
350
- "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=DummyInfrastructureMachine , ns1/cluster2-m1" ,
347
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/cluster1-m1" ,
348
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/cluster1-m1" ,
349
+ "bootstrap.cluster.x-k8s.io/v1alpha3, Kind=GenericBootstrapConfig , ns1/cluster2-m1" ,
350
+ "infrastructure.cluster.x-k8s.io/v1alpha3, Kind=GenericInfrastructureMachine , ns1/cluster2-m1" ,
351
351
},
352
352
{ //group 5 (objects with ownerReferences in group 1,2,3,4)
353
- // owned by DummyBootstrapConfigs
353
+ // owned by GenericBootstrapConfigs
354
354
"/v1, Kind=Secret, ns1/cluster1-m1" ,
355
355
"/v1, Kind=Secret, ns1/cluster2-m1" ,
356
356
},
0 commit comments