mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Exclude new groupversion types from protobuf
This commit is contained in:
parent
a20e551b46
commit
1220464f2a
@ -24,6 +24,8 @@ import (
|
|||||||
|
|
||||||
// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying
|
// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying
|
||||||
// concepts during lookup stages without having partially valid types
|
// concepts during lookup stages without having partially valid types
|
||||||
|
//
|
||||||
|
// +protobuf.options.(gogoproto.goproto_stringer)=false
|
||||||
type GroupResource struct {
|
type GroupResource struct {
|
||||||
Group string
|
Group string
|
||||||
Resource string
|
Resource string
|
||||||
@ -46,6 +48,8 @@ func (gr *GroupResource) String() string {
|
|||||||
|
|
||||||
// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion
|
// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion
|
||||||
// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling
|
// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling
|
||||||
|
//
|
||||||
|
// +protobuf.options.(gogoproto.goproto_stringer)=false
|
||||||
type GroupVersionResource struct {
|
type GroupVersionResource struct {
|
||||||
Group string
|
Group string
|
||||||
Version string
|
Version string
|
||||||
|
Loading…
Reference in New Issue
Block a user