pacoxu / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
2 stars 4 forks source link

enable protobuf generation for the sample-apiserver #1748

Open github-actions[bot] opened 3 years ago

github-actions[bot] commented 3 years ago

enable protobuf generation for the sample-apiserver

roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, wardlefuzzer.Funcs)

https://github.com/pacoxu/kubernetes/blob/19f8624ecd4751bb1c5a01662c32364a0169337d/staging/src/k8s.io/sample-apiserver/pkg/apis/wardle/install/roundtrip_test.go#L28

Copyright 2017 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package install

import (
    "testing"

    "k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
    wardlefuzzer "k8s.io/sample-apiserver/pkg/apis/wardle/fuzzer"
)

func TestRoundTripTypes(t *testing.T) {
    roundtrip.RoundTripTestForAPIGroup(t, Install, wardlefuzzer.Funcs)
    // TODO: enable protobuf generation for the sample-apiserver
    // roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, wardlefuzzer.Funcs)
}
ew file mode 100644
ndex 0000000000000..3095a5c4ad4e0
++ b/staging/src/k8s.io/sample-apiserver/pkg/apis/wardle/register.go

51e5972a6ed59bfd255919ac88815a43fb849db8