diff --git a/pkg/controllers/dlb/controller_test.go b/pkg/controllers/dlb/controller_test.go index a93ac4875..f0573220d 100644 --- a/pkg/controllers/dlb/controller_test.go +++ b/pkg/controllers/dlb/controller_test.go @@ -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, }, diff --git a/pkg/controllers/dsa/controller_test.go b/pkg/controllers/dsa/controller_test.go index d1de04de6..c168093d6 100644 --- a/pkg/controllers/dsa/controller_test.go +++ b/pkg/controllers/dsa/controller_test.go @@ -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, }, diff --git a/pkg/controllers/fpga/controller_test.go b/pkg/controllers/fpga/controller_test.go index 806a2cef9..76e974f0c 100644 --- a/pkg/controllers/fpga/controller_test.go +++ b/pkg/controllers/fpga/controller_test.go @@ -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, }, diff --git a/pkg/controllers/gpu/controller_test.go b/pkg/controllers/gpu/controller_test.go index 94b28b9cc..c0b8b8241 100644 --- a/pkg/controllers/gpu/controller_test.go +++ b/pkg/controllers/gpu/controller_test.go @@ -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, }, diff --git a/pkg/controllers/qat/controller_test.go b/pkg/controllers/qat/controller_test.go index 83c3e90cf..c2eb12bef 100644 --- a/pkg/controllers/qat/controller_test.go +++ b/pkg/controllers/qat/controller_test.go @@ -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, }, diff --git a/pkg/controllers/sgx/controller_test.go b/pkg/controllers/sgx/controller_test.go index f4a7b20df..2281d78da 100644 --- a/pkg/controllers/sgx/controller_test.go +++ b/pkg/controllers/sgx/controller_test.go @@ -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, }, diff --git a/pkg/webhooks/sgx/sgx.go b/pkg/webhooks/sgx/sgx.go index ee0a8f449..b6e9e7ec6 100644 --- a/pkg/webhooks/sgx/sgx.go +++ b/pkg/webhooks/sgx/sgx.go @@ -153,13 +153,13 @@ func (s *Mutator) Default(ctx context.Context, obj runtime.Object) error { // Quote Generation Modes: // // in-process: A container has its own quote provider library library: In this mode, - // the container needs a handle to /dev/sgx/provision (sgx.intel.com/provision resource). + // the container needs a handle to /dev/sgx_provision (sgx.intel.com/provision resource). // out-of-process: A container uses Intel aesmd. In this mode, the container must talk to // aesmd over /var/run/aesmd/aesm.sock. aesmd can run either as a side-car or a DaemonSet // // Mode selection: The mode selection is done by setting sgx.intel.com/quote-provider annotation // to a value that specifies the container name. If the annotation matches the container requesting - // SGX EPC resources, the webhook adds both /dev/sgx/provision and /dev/sgx/enclave resource requests. + // SGX EPC resources, the webhook adds both /dev/sgx_provision and /dev/sgx_enclave resource requests. // Without sgx.intel.com/quote-provider annotation set, the container is not able to generate quotes // for its enclaves. When pods set sgx.intel.com/quote-provider: "aesmd", Intel aesmd specific volume // mounts are added. In both DaemonSet and sidecar deployment scenarios for aesmd, its container name