Skip to content

Commit

Permalink
Update with stdlib errors
Browse files Browse the repository at this point in the history
Kubernetes-commit: ac2c450da7c343db81eefd693903b496f9a5fe4a
  • Loading branch information
cici37 authored and k8s-publishing-bot committed Jul 23, 2024
1 parent 4940c42 commit 93b42bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apiserver/schema/cel/compilation.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ limitations under the License.
package cel

import (
"errors"
"fmt"
"strings"
"time"

"github.com/google/cel-go/cel"
"github.com/google/cel-go/checker"
"github.com/google/cel-go/common/types"
"github.com/pkg/errors"

apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
"k8s.io/apiextensions-apiserver/pkg/apiserver/schema"
Expand Down Expand Up @@ -127,7 +127,7 @@ func Compile(s *schema.Structural, declType *apiservercel.DeclType, perCallLimit
return nil, nil
}
if declType == nil {
return nil, errors.New("Failed to convert to declType for CEL validation rules")
return nil, errors.New("failed to convert to declType for CEL validation rules")
}
celRules := s.XValidations

Expand Down

0 comments on commit 93b42bf

Please sign in to comment.