Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for GetObjectKind (0.18 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter.go

    			}
    			if expected, got := original.GetObjectKind().GroupVersionKind().Kind, converted.GetObjectKind().GroupVersionKind().Kind; expected != got {
    				Metrics.ObserveConversionWebhookFailure(ctx, time.Since(t), ConversionWebhookInvalidConvertedObjectFailure)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 19:37:55 UTC 2023
    - 20.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/printers/typesetter.go

    	if obj == nil {
    		return p.Delegate.PrintObj(obj, w)
    	}
    	if !obj.GetObjectKind().GroupVersionKind().Empty() {
    		return p.Delegate.PrintObj(obj, w)
    	}
    
    	// we were empty coming in, make sure we're empty going out.  This makes the call thread-unsafe
    	defer func() {
    		obj.GetObjectKind().SetGroupVersionKind(schema.GroupVersionKind{})
    	}()
    
    	gvks, _, err := p.Typer.ObjectKinds(obj)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/testing/cacheable_object.go

    func (*noncacheableTestObject) DeepCopyObject() runtime.Object {
    	panic("DeepCopy unimplemented for noncacheableTestObject")
    }
    
    // GetObjectKind implements runtime.Object interface.
    func (o *noncacheableTestObject) GetObjectKind() schema.ObjectKind {
    	return o
    }
    
    // GroupVersionKind implements schema.ObjectKind interface.
    func (o *noncacheableTestObject) GroupVersionKind() schema.GroupVersionKind {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 30 06:58:54 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  4. pkg/registry/flowcontrol/ensurer/strategy.go

    		}
    		klog.V(5).InfoS(fmt.Sprintf("Something created the %s concurrently", bootstrap.GetObjectKind().GroupVersionKind().Kind), "type", configurationType, "name", name)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 14K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert_test.go

    	Foobar    bar               `json:"foobar,omitempty"`
    	Testmap   map[string]string `json:"testmap,omitempty"`
    }
    
    func (obj *foo) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
    
    type baz struct {
    	Ptr  *int  `json:"ptr"`
    	Bptr *bool `json:"bptr,omitempty"`
    }
    
    func (obj *baz) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 03 07:01:02 UTC 2018
    - 6.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/nop_converter.go

    	if list, ok := in.(*unstructured.UnstructuredList); ok {
    		for i := range list.Items {
    			list.Items[i].SetGroupVersionKind(targetGV.WithKind(list.Items[i].GroupVersionKind().Kind))
    		}
    	}
    	in.GetObjectKind().SetGroupVersionKind(targetGV.WithKind(in.GetObjectKind().GroupVersionKind().Kind))
    	return in, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 15:27:39 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. pkg/apis/core/objectreference.go

    func (obj *ObjectReference) GroupVersionKind() schema.GroupVersionKind {
    	return schema.FromAPIVersionAndKind(obj.APIVersion, obj.Kind)
    }
    
    // GetObjectKind returns the kind of object reference
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 25 18:06:51 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/printers/json.go

    		if err != nil {
    			return err
    		}
    		buf.WriteRune('\n')
    		_, err = buf.WriteTo(w)
    		return err
    	}
    
    	if obj.GetObjectKind().GroupVersionKind().Empty() {
    		return fmt.Errorf("missing apiVersion or kind; try GetObjectKind().SetGroupVersionKind() if you know the type")
    	}
    
    	data, err := json.MarshalIndent(obj, "", "    ")
    	if err != nil {
    		return err
    	}
    	data = append(data, '\n')
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 11:23:25 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/managedfields/extract.go

    	// set the type meta manually if it doesn't exist to avoid missing kind errors
    	// when decoding from unstructured JSON
    	if _, ok := m["kind"]; !ok && object.GetObjectKind().GroupVersionKind().Kind != "" {
    		m["kind"] = object.GetObjectKind().GroupVersionKind().Kind
    		m["apiVersion"] = object.GetObjectKind().GroupVersionKind().GroupVersion().String()
    	}
    	if err := runtime.DefaultUnstructuredConverter.FromUnstructured(m, applyConfiguration); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 03:17:15 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go

    	targetGVK, matched := outVersion.KindForGroupVersionKinds([]schema.GroupVersionKind{in.GetObjectKind().GroupVersionKind()})
    	if !matched {
    		return nil, fmt.Errorf("attempt to convert to mismatched gv %v", outVersion)
    	}
    	if err := c.recognizeGVK(out.GetObjectKind().GroupVersionKind()); err != nil {
    		return nil, err
    	}
    	out.GetObjectKind().SetGroupVersionKind(targetGVK)
    	return out, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 08 14:55:24 UTC 2018
    - 10.9K bytes
    - Viewed (0)
Back to top