controllers: use const appLabel in tests

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
This commit is contained in:
Mikko Ylinen 2023-10-30 13:29:59 +02:00
parent 622a7783f5
commit 48fd7b82fe
6 changed files with 6 additions and 6 deletions

View File

@ -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,
},

View File

@ -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,
},

View File

@ -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,
},

View File

@ -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,
},

View File

@ -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,
},

View File

@ -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,
},