- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for KindFor (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching.go
m := rules.Matcher{ Rule: rule, Attr: attrWithOverride, } if !m.Matches() { continue } matchKind = o.GetEquivalentResourceMapper().KindFor(equivalent, attr.GetSubresource()) if matchKind.Empty() { return false, schema.GroupVersionResource{}, schema.GroupVersionKind{}, fmt.Errorf("unable to convert to %v: unknown kind", equivalent) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 6.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go
mapper meta.RESTMapper } func (p *WantsRESTMapperAdmissionPlugin) SetRESTMapper(mapper meta.RESTMapper) { p.mapper = mapper } type doNothingRESTMapper struct{} func (doNothingRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) { return schema.GroupVersionKind{}, nil } func (doNothingRESTMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 8.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go
continue } attrWithOverride.resource = equivalent m := rules.Matcher{Rule: r, Attr: attrWithOverride} if m.Matches() { kind := o.GetEquivalentResourceMapper().KindFor(equivalent, attr.GetSubresource()) if kind.Empty() { return nil, apierrors.NewInternalError(fmt.Errorf("unable to convert to %v: unknown kind", equivalent)) } invocation = &WebhookInvocation{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 9.3K bytes - Viewed (0) -
pkg/controller/storageversionmigrator/storageversionmigrator.go
ctx, setStatusConditions(toBeProcessedSVM, svmv1alpha1.MigrationRunning, migrationRunningStatusReason), metav1.UpdateOptions{}, ) if err != nil { return err } gvk, err := svmc.restMapper.KindFor(gvr) if err != nil { return err } typeMeta := metav1.TypeMeta{} typeMeta.APIVersion, typeMeta.Kind = gvk.ToAPIVersionAndKind() data, err := json.Marshal(typeMeta) if err != nil { return err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 9.5K bytes - Viewed (0)