Skip to content

Commit

Permalink
controllers: use const appLabel in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Mikko Ylinen <[email protected]>
  • Loading branch information
mythi committed Oct 30, 2023
1 parent 622a778 commit 48fd7b8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/dlb/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
},
ObjectMeta: metav1.ObjectMeta{
Namespace: c.ns,
Name: "intel-dlb-plugin",
Name: appLabel,
Labels: map[string]string{
"app": appLabel,
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/dsa/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
},
ObjectMeta: metav1.ObjectMeta{
Namespace: c.ns,
Name: "intel-dsa-plugin",
Name: appLabel,
Labels: map[string]string{
"app": appLabel,
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/fpga/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
},
ObjectMeta: metav1.ObjectMeta{
Namespace: c.ns,
Name: "intel-fpga-plugin",
Name: appLabel,
Labels: map[string]string{
"app": appLabel,
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/gpu/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
},
ObjectMeta: metav1.ObjectMeta{
Namespace: c.ns,
Name: "intel-gpu-plugin",
Name: appLabel,
Labels: map[string]string{
"app": appLabel,
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/qat/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
},
ObjectMeta: metav1.ObjectMeta{
Namespace: c.ns,
Name: "intel-qat-plugin",
Name: appLabel,
Labels: map[string]string{
"app": appLabel,
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/sgx/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
},
ObjectMeta: metav1.ObjectMeta{
Namespace: c.ns,
Name: "intel-sgx-plugin",
Name: appLabel,
Labels: map[string]string{
"app": appLabel,
},
Expand Down

0 comments on commit 48fd7b8

Please sign in to comment.