- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewErr (0.1 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/common/values.go
return types.NullValue } return types.NewErr("invalid data, got null for schema with nullable=false") } if schema.IsXIntOrString() { switch v := unstructured.(type) { case string: return types.String(v) case int: return types.Int(v) case int32: return types.Int(v) case int64: return types.Int(v) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:30:17 UTC 2023 - 20.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/authz.go
} if errors := apimachineryvalidation.ValidateServiceAccountName(name, false); len(errors) > 0 { return types.NewErr("Invalid service account name") } if errors := apimachineryvalidation.ValidateNamespaceName(namespace, false); len(errors) > 0 { return types.NewErr("Invalid service account namespace") } return authz.serviceAccount(namespace, name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 21.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/ip.go
if !ok { return types.MaybeNoSuchOverloadErr(arg) } addr, err := parseIPAddr(s) if err != nil { // Don't add context, we control the error message already. return types.NewErr("%v", err) } return apiservercel.IP{ Addr: addr, } } func ipToString(arg ref.Val) ref.Val { ip, ok := arg.(apiservercel.IP) if !ok { return types.MaybeNoSuchOverloadErr(arg)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 11:02:34 UTC 2023 - 9.8K bytes - Viewed (0)