Skip to content

Commit 93b42bf

Browse files
cici37k8s-publishing-bot
authored andcommitted
Update with stdlib errors
Kubernetes-commit: ac2c450da7c343db81eefd693903b496f9a5fe4a
1 parent 4940c42 commit 93b42bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/apiserver/schema/cel/compilation.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ limitations under the License.
1717
package cel
1818

1919
import (
20+
"errors"
2021
"fmt"
2122
"strings"
2223
"time"
2324

2425
"github.com/google/cel-go/cel"
2526
"github.com/google/cel-go/checker"
2627
"github.com/google/cel-go/common/types"
27-
"github.com/pkg/errors"
2828

2929
apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
3030
"k8s.io/apiextensions-apiserver/pkg/apiserver/schema"
@@ -127,7 +127,7 @@ func Compile(s *schema.Structural, declType *apiservercel.DeclType, perCallLimit
127127
return nil, nil
128128
}
129129
if declType == nil {
130-
return nil, errors.New("Failed to convert to declType for CEL validation rules")
130+
return nil, errors.New("failed to convert to declType for CEL validation rules")
131131
}
132132
celRules := s.XValidations
133133

0 commit comments

Comments
 (0)