Skip to content

Commit 6d7bde9

Browse files
fix
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
1 parent d324353 commit 6d7bde9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • test/e2e/internal/precheck

test/e2e/internal/precheck/usb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func checkDummyHCDConfigured(ctx context.Context, f *framework.Framework) bool {
6363
return false
6464
}
6565

66-
func (u *usbPrecheck) checkVirtualizationDraRunning(ctx context.Context, f *framework.Framework) bool {
66+
func (u *usbPrecheck) checkVirtualizationDra(ctx context.Context, f *framework.Framework) bool {
6767
_, err := f.KubeClient().AppsV1().DaemonSets(metav1.NamespaceSystem).Get(ctx, "virtualization-dra", metav1.GetOptions{})
6868
if err != nil {
6969
if k8serrors.IsNotFound(err) {
@@ -81,7 +81,7 @@ func (u *usbPrecheck) Run(ctx context.Context, f *framework.Framework) error {
8181
return nil
8282
}
8383

84-
if !u.checkVirtualizationDraRunning(ctx, f) {
84+
if !u.checkVirtualizationDra(ctx, f) {
8585
return fmt.Errorf("%s=no to disable this precheck: virtualization-dra DaemonSet is not running. "+
8686
"Configure virtualization with DRA support", usbPrecheckEnvName)
8787
}

0 commit comments

Comments
 (0)