Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for KindFor (1.03 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. plugin/pkg/admission/gc/gc_admission_test.go

    	initializersChain.Initialize(gcAdmit)
    	return gcAdmit, nil
    }
    
    type neverReturningRESTMapper struct{}
    
    var _ meta.RESTMapper = &neverReturningRESTMapper{}
    
    func (r *neverReturningRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) {
    	// this ok because if the test works, this method should never be called.
    	panic("test failed")
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  6. pkg/controller/garbagecollector/graph_builder.go

    			continue
    		}
    		if m, ok := toRemove[resource]; ok {
    			current[resource] = m
    			delete(toRemove, resource)
    			kept++
    			continue
    		}
    		kind, err := gb.restMapper.KindFor(resource)
    		if err != nil {
    			errs = append(errs, fmt.Errorf("couldn't look up resource %q: %v", resource, err))
    			continue
    		}
    		c, s, err := gb.controllerFor(logger, resource, kind)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/tasks/BaseSnapshotInputsBuildOperationResult.java

                return findFor(normalizer, BY_NORMALIZER);
            }
    
            static SnapshotTaskInputsBuildOperationResult.FilePropertyAttribute from(DirectorySensitivity directorySensitivity) {
                return findFor(directorySensitivity, BY_DIRECTORY_SENSITIVITY);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 11:36:42 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top