Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for SetGroupVersionKind (0.34 sec)

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

    limitations under the License.
    */
    
    package runtime
    
    import "k8s.io/apimachinery/pkg/runtime/schema"
    
    // SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta
    func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind) {
    	obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 13 15:08:46 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/testing/cacheable_object.go

    }
    
    // GroupVersionKind implements schema.ObjectKind interface.
    func (o *noncacheableTestObject) GroupVersionKind() schema.GroupVersionKind {
    	return o.gvk
    }
    
    // SetGroupVersionKind implements schema.ObjectKind interface.
    func (o *noncacheableTestObject) SetGroupVersionKind(gvk schema.GroupVersionKind) {
    	o.gvk = gvk
    }
    
    var _ runtime.CacheableObject = &MockCacheableObject{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 30 06:58:54 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/schema/interfaces.go

    // For objects that cannot be serialized or have unique requirements, this interface may be a no-op.
    type ObjectKind interface {
    	// SetGroupVersionKind sets or clears the intended serialized kind of an object. Passing kind nil
    	// should clear the current setting.
    	SetGroupVersionKind(kind GroupVersionKind)
    	// GroupVersionKind returns the stored group, version, and kind of an object, or an empty struct
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 07 14:45:22 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller_test.go

    			"resourceVersion": "object1",
    		},
    	})
    	object1.SetGroupVersionKind(fakeGVK)
    
    	object1v2 := &unstructured.Unstructured{}
    	object1v2.SetUnstructuredContent(map[string]interface{}{
    		"metadata": map[string]interface{}{
    			"name":            "object1",
    			"resourceVersion": "object1v2",
    		},
    	})
    	object1v2.SetGroupVersionKind(fakeGVK)
    
    	object2 := &unstructured.Unstructured{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  5. pkg/apis/core/objectreference.go

    //functions in the k8s.io/api repo.
    
    package core
    
    import (
    	"k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    // SetGroupVersionKind sets the API version and kind of the object reference
    func (obj *ObjectReference) SetGroupVersionKind(gvk schema.GroupVersionKind) {
    	obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind()
    }
    
    // GroupVersionKind returns the API version and kind of the 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)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/nop_converter.go

    	// Run the converter on the list items instead of list itself
    	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. staging/src/k8s.io/cli-runtime/pkg/printers/typesetter.go

    		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)
    	if err != nil {
    		// printers wrapped by us expect to find the type information present
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go

    )
    
    func buildUnstructuredDecodable(gvk schema.GroupVersionKind) runtime.Object {
    	obj := &unstructured.Unstructured{}
    	obj.SetGroupVersionKind(gvk)
    	return obj
    }
    
    func buildUnstructuredListDecodable(gvk schema.GroupVersionKind) runtime.Object {
    	obj := &unstructured.UnstructuredList{}
    	obj.SetGroupVersionKind(gvk)
    	return obj
    }
    
    func TestEncodeUnstructured(t *testing.T) {
    	v1GVK := schema.GroupVersionKind{
    		Group:   "crispy",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 08 14:55:24 UTC 2018
    - 10.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response_test.go

    }
    
    // GroupVersionKind implements schema.ObjectKind interface.
    func (m *mockCacheableObject) GroupVersionKind() schema.GroupVersionKind {
    	return m.gvk
    }
    
    // SetGroupVersionKind implements schema.ObjectKind interface.
    func (m *mockCacheableObject) SetGroupVersionKind(gvk schema.GroupVersionKind) {
    	m.gvk = gvk
    }
    
    // CacheEncode implements runtime.CacheableObject interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/meta.go

    func (meta *ListMeta) SetRemainingItemCount(c *int64)    { meta.RemainingItemCount = c }
    
    func (obj *TypeMeta) GetObjectKind() schema.ObjectKind { return obj }
    
    // SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta
    func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind) {
    	obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 7.7K bytes
    - Viewed (0)
Back to top