Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of about 10,000 for kindOf (0.17 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/codec_test.go

    	return schema.GroupVersion{Group: group, Version: version}
    }
    func gvk(group, version, kind string) schema.GroupVersionKind {
    	return schema.GroupVersionKind{Group: group, Version: version, Kind: kind}
    }
    func gk(group, kind string) schema.GroupKind {
    	return schema.GroupKind{Group: group, Kind: kind}
    }
    
    func TestCoercingMultiGroupVersioner(t *testing.T) {
    	testcases := []struct {
    		name           string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 30 06:58:54 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version_test.go

    		{
    			desc:    "targets and kinds have match items",
    			kinds:   []GroupVersionKind{{Version: "V1", Kind: "pod"}, {Version: "V2", Kind: "pod"}},
    			targets: []GroupVersionKind{{Version: "V1", Kind: "pod"}},
    			output:  GroupVersionKind{Version: "V1", Kind: "pod"},
    		},
    		{
    			desc:    "targets and kinds do not have match items",
    			kinds:   []GroupVersionKind{{Version: "V1", Kind: "pod"}, {Version: "V2", Kind: "pod"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 15 01:46:00 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/meta/errors.go

    	}
    
    	switch len(searchedVersions) {
    	case 0:
    		return fmt.Sprintf("no matches for kind %q in group %q", e.GroupKind.Kind, e.GroupKind.Group)
    	case 1:
    		return fmt.Sprintf("no matches for kind %q in version %q", e.GroupKind.Kind, searchedVersions.List()[0])
    	default:
    		return fmt.Sprintf("no matches for kind %q in versions %q", e.GroupKind.Kind, searchedVersions.List())
    	}
    }
    
    func (*NoKindMatchError) Is(target error) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 11 22:50:51 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  4. operator/pkg/verifier/verifier.go

    }
    
    func resourceKinds(un *unstructured.Unstructured) string {
    	kinds := findResourceInSpec(un.GetObjectKind().GroupVersionKind())
    	if kinds == "" {
    		kinds = strings.ToLower(un.GetKind()) + "s"
    	}
    	// Override with special kind if it exists in the map
    	if specialKind, exists := specialKinds[un.GetKind()]; exists {
    		kinds = specialKind
    	}
    	return kinds
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/mapper.go

    	defer r.mutex.RUnlock()
    	return r.kinds[resource][subresource]
    }
    func (r *equivalentResourceRegistry) RegisterKindFor(resource schema.GroupVersionResource, subresource string, kind schema.GroupVersionKind) {
    	r.mutex.Lock()
    	defer r.mutex.Unlock()
    	if r.kinds == nil {
    		r.kinds = map[schema.GroupVersionResource]map[string]schema.GroupVersionKind{}
    	}
    	if r.kinds[resource] == nil {
    		r.kinds[resource] = map[string]schema.GroupVersionKind{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 18:26:06 UTC 2019
    - 3.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version.go

    // and parses it out into both possibilities. This code takes no responsibility for knowing which representation was intended
    // but with a knowledge of all GroupKinds, calling code can take a very good guess. If there are only two segments, then
    // `*GroupVersionKind` is nil.
    // `Kind.group.com` -> `group=com, version=group, kind=Kind` and `group=group.com, kind=Kind`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 30 09:08:59 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/api/meta/priority.go

    	}
    
    	return true
    }
    
    func kindMatches(pattern schema.GroupVersionKind, kind schema.GroupVersionKind) bool {
    	if pattern.Group != AnyGroup && pattern.Group != kind.Group {
    		return false
    	}
    	if pattern.Version != AnyVersion && pattern.Version != kind.Version {
    		return false
    	}
    	if pattern.Kind != AnyKind && pattern.Kind != kind.Kind {
    		return false
    	}
    
    	return true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 23:44:02 UTC 2021
    - 7.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go

    				// only test options types in the core API group
    				continue
    			}
    			gvks = append(gvks, gvk)
    		}
    		c.Kinds = gvks
    	}
    
    	// Sort kinds to get deterministic test order
    	sort.Slice(c.Kinds, func(i, j int) bool {
    		if c.Kinds[i].Group != c.Kinds[j].Group {
    			return c.Kinds[i].Group < c.Kinds[j].Group
    		}
    		if c.Kinds[i].Version != c.Kinds[j].Version {
    			return c.Kinds[i].Version < c.Kinds[j].Version
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 16:38:32 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  9. tensorflow/c/eager/abstract_function.h

    class AbstractFunction : public core::RefCounted {
     protected:
      enum AbstractFunctionKind { kGraph, kMlir };
      explicit AbstractFunction(AbstractFunctionKind kind) : kind_(kind) {}
    
     public:
      // Returns which subclass is this instance of.
      AbstractFunctionKind getKind() const { return kind_; }
    
      // Returns the AbstractFunction as a FunctionDef.
      virtual Status GetFunctionDef(const FunctionDef**) = 0;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 04 19:49:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/abstract_op_attrs.h

    // Attributes of an op.
    class AbstractOpAttrs {
     protected:
      enum AbstractOpAttrsKind { kEager, kTfrt };
      explicit AbstractOpAttrs(AbstractOpAttrsKind kind) : kind_(kind) {}
    
     public:
      // Returns which subclass is this instance of.
      AbstractOpAttrsKind getKind() const { return kind_; }
      virtual ~AbstractOpAttrs() = default;
    
      // Returns the AbstractFunction as a FunctionDef.
      virtual void GetNameAttrList(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 26 22:20:27 UTC 2021
    - 2K bytes
    - Viewed (0)
Back to top