From 0e6c7bf9311b3bf8c8ea7498060d020dc56f6a2d Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Mon, 25 Apr 2022 15:18:58 -0700 Subject: [PATCH] Fix undefined error in use of errors package Signed-off-by: Derek McGowan --- pkg/cri/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cri/config/config.go b/pkg/cri/config/config.go index ccf98f133262..f0dbcf0efba4 100644 --- a/pkg/cri/config/config.go +++ b/pkg/cri/config/config.go @@ -406,7 +406,7 @@ func ValidatePluginConfig(ctx context.Context, c *PluginConfig) error { log.G(ctx).Warning("`runtime_root` is deprecated, please use runtime `options` instead") } if !r.PrivilegedWithoutHostDevices && r.PrivilegedWithoutHostDevicesAllDevicesAllowed { - return errors.Errorf("`privileged_without_host_devices_all_devices_allowed` requires `privileged_without_host_devices` to be enabled") + return errors.New("`privileged_without_host_devices_all_devices_allowed` requires `privileged_without_host_devices` to be enabled") } }