Skip to content

Commit 48fd7b8

Browse files
committed
controllers: use const appLabel in tests
Signed-off-by: Mikko Ylinen <[email protected]>
1 parent 622a778 commit 48fd7b8

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

pkg/controllers/dlb/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
4242
},
4343
ObjectMeta: metav1.ObjectMeta{
4444
Namespace: c.ns,
45-
Name: "intel-dlb-plugin",
45+
Name: appLabel,
4646
Labels: map[string]string{
4747
"app": appLabel,
4848
},

pkg/controllers/dsa/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
4343
},
4444
ObjectMeta: metav1.ObjectMeta{
4545
Namespace: c.ns,
46-
Name: "intel-dsa-plugin",
46+
Name: appLabel,
4747
Labels: map[string]string{
4848
"app": appLabel,
4949
},

pkg/controllers/fpga/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
4545
},
4646
ObjectMeta: metav1.ObjectMeta{
4747
Namespace: c.ns,
48-
Name: "intel-fpga-plugin",
48+
Name: appLabel,
4949
Labels: map[string]string{
5050
"app": appLabel,
5151
},

pkg/controllers/gpu/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
4545
},
4646
ObjectMeta: metav1.ObjectMeta{
4747
Namespace: c.ns,
48-
Name: "intel-gpu-plugin",
48+
Name: appLabel,
4949
Labels: map[string]string{
5050
"app": appLabel,
5151
},

pkg/controllers/qat/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
4545
},
4646
ObjectMeta: metav1.ObjectMeta{
4747
Namespace: c.ns,
48-
Name: "intel-qat-plugin",
48+
Name: appLabel,
4949
Labels: map[string]string{
5050
"app": appLabel,
5151
},

pkg/controllers/sgx/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (c *controller) newDaemonSetExpected(rawObj client.Object) *apps.DaemonSet
4545
},
4646
ObjectMeta: metav1.ObjectMeta{
4747
Namespace: c.ns,
48-
Name: "intel-sgx-plugin",
48+
Name: appLabel,
4949
Labels: map[string]string{
5050
"app": appLabel,
5151
},

0 commit comments

Comments
 (0)