Skip to content

Commit 4587bc6

Browse files
committed
fix: tests
1 parent 89b4aad commit 4587bc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/controller/metalstackcluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ func (r *clusterReconciler) ensureNodeNetwork() (string, error) {
393393
Name: r.infraCluster.GetName(),
394394
Description: fmt.Sprintf("%s/%s", r.infraCluster.GetNamespace(), r.infraCluster.GetName()),
395395
Labels: map[string]string{
396-
v1alpha1.TagInfraClusterResource: r.infraCluster.GetClusterName(),
396+
tag.ClusterID: r.infraCluster.GetClusterName(),
397397
},
398398
}).WithContext(r.ctx), nil)
399399
if err != nil {

internal/controller/metalstackcluster_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,14 @@ var _ = Describe("MetalStackCluster Controller", func() {
290290
Name: resource.Name,
291291
Description: resource.Namespace + "/" + resource.Name,
292292
Labels: map[string]string{
293-
"cluster.metal-stack.io/id": string(resource.UID),
293+
"cluster.metal-stack.io/id": resource.GetClusterName(),
294294
},
295295
Partitionid: "test-partition",
296296
Projectid: "test-project",
297297
})), nil).Return(&metalnetwork.AllocateNetworkCreated{
298298
Payload: &models.V1NetworkResponse{
299299
Labels: map[string]string{
300-
"cluster.metal-stack.io/id": string(resource.UID),
300+
"cluster.metal-stack.io/id": resource.GetClusterName(),
301301
},
302302
Partitionid: "test-partition",
303303
Projectid: "test-project",

0 commit comments

Comments
 (0)