Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CodecForVersions (0.23 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_factory.go

    	var versioner runtime.GroupVersioner
    	if len(versions) == 0 {
    		versioner = runtime.InternalGroupVersioner
    	} else {
    		versioner = schema.GroupVersions(versions)
    	}
    	return f.CodecForVersions(nil, f.universal, nil, versioner)
    }
    
    // CodecForVersions creates a codec with the provided serializer. If an object is decoded and its group is not in the list,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go

    		// TODO remove this hack after we're past the intermediate steps
    		if !skipProtobuf && externalGVK.Group != "kubeadm.k8s.io" {
    			s := protobuf.NewSerializer(scheme, scheme)
    			protobufCodec := codecFactory.CodecForVersions(s, s, externalGVK.GroupVersion(), nil)
    			roundTrip(t, scheme, protobufCodec, object)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
Back to top