- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 41 for NotSupported (0.24 sec)
-
pkg/apis/core/validation/validation.go
if azure.CachingMode != nil && !supportedCachingModes.Has(*azure.CachingMode) { allErrs = append(allErrs, field.NotSupported(fldPath.Child("cachingMode"), *azure.CachingMode, sets.List(supportedCachingModes))) } if azure.Kind != nil && !supportedDiskKinds.Has(*azure.Kind) { allErrs = append(allErrs, field.NotSupported(fldPath.Child("kind"), *azure.Kind, sets.List(supportedDiskKinds))) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0) -
pkg/credentialprovider/plugin/config.go
validAPIVersions := []string{} for apiVersion := range apiVersions { validAPIVersions = append(validAPIVersions, apiVersion) } allErrs = append(allErrs, field.NotSupported(fieldPath.Child("apiVersion"), provider.APIVersion, validAPIVersions)) } if len(provider.MatchImages) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 19 15:11:57 UTC 2023 - 4.5K bytes - Viewed (0) -
pkg/apis/networking/validation/validation.go
allErrs := field.ErrorList{} if port.Protocol != nil && *port.Protocol != api.ProtocolTCP && *port.Protocol != api.ProtocolUDP && *port.Protocol != api.ProtocolSCTP { allErrs = append(allErrs, field.NotSupported(portPath.Child("protocol"), *port.Protocol, []string{string(api.ProtocolTCP), string(api.ProtocolUDP), string(api.ProtocolSCTP)})) } if port.Port != nil { if port.Port.Type == intstr.Int {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 07 14:48:01 UTC 2024 - 31.5K bytes - Viewed (0) -
pkg/apis/certificates/validation/validation.go
} if !opts.allowUnknownUsages { for i, usage := range csr.Spec.Usages { if !allValidUsages.Has(string(usage)) { allErrs = append(allErrs, field.NotSupported(specPath.Child("usages").Index(i), usage, allValidUsages.List())) } } } if !opts.allowDuplicateUsages { seen := make(map[certificates.KeyUsage]bool, len(csr.Spec.Usages))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:49 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/apis/storagemigration/validation/validation.go
// status is set and is an accepted value if !validConditionStatuses.Has(string(condition.Status)) { allErrs = append(allErrs, field.NotSupported(fldPath.Child("status"), condition.Status, validConditionStatuses.List())) } if condition.LastUpdateTime.IsZero() { allErrs = append(allErrs, field.Required(fldPath.Child("lastTransitionTime"), "must be set")) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 04:18:56 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclaimtemplate_test.go
template := testClaimTemplate(goodName, goodNS, goodClaimSpec) template.Spec.Spec.ResourceClassName = badName return template }(), }, "bad-mode": { wantFailures: field.ErrorList{field.NotSupported(field.NewPath("spec", "spec", "allocationMode"), invalidMode, supportedAllocationModes.List())}, template: func() *resource.ResourceClaimTemplate { template := testClaimTemplate(goodName, goodNS, goodClaimSpec)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 12.3K bytes - Viewed (0) -
pkg/apis/apps/validation/validation_test.go
errs: field.ErrorList{ field.NotSupported[string](field.NewPath("spec", "template", "spec", "restartPolicy"), nil, nil), }, }, { name: "invalid restart policy 2", set: mkStatefulSet(&validPodTemplate, tweakTemplateRestartPolicy(api.RestartPolicyNever)), errs: field.ErrorList{ field.NotSupported[string](field.NewPath("spec", "template", "spec", "restartPolicy"), nil, nil), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 111.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go
} return field.ErrorList{} } for _, a := range accepted { if a == value { return field.ErrorList{} } } return field.ErrorList{field.NotSupported(fldPath, value, accepted)} } // AcceptedConversionReviewVersions contains the list of ConversionReview versions the *prior* version of the API server understands.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 82.6K bytes - Viewed (0) -
pkg/apis/flowcontrol/validation/validation_test.go
Verbs: []string{"*"}, NonResourceURLs: []string{flowcontrol.NonResourceAll}, }}, }}, }, }, expectedErrors: field.ErrorList{ field.NotSupported(field.NewPath("spec").Child("rules").Index(0).Child("subjects").Index(0).Child("kind"), flowcontrol.SubjectKind("FooKind"), supportedSubjectKinds.List()), }, }, { name: "flow-schema w/ invalid verb should fail",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 22:22:51 UTC 2023 - 54.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go
configuration: api.AuthorizationConfiguration{ Authorizers: []api.AuthorizerConfiguration{ { Type: "Foo", }, }, }, expectedErrList: field.ErrorList{field.NotSupported(field.NewPath("type"), "Foo", []string{"..."})}, knownTypes: sets.NewString(string("Webhook")), repeatableTypes: sets.NewString(string("Webhook")), }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 87.2K bytes - Viewed (0)