mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Fix skipping - protobuf fields
Match changes in https://github.com/kubernetes/gengo/pull/19
This commit is contained in:
parent
dba16d052c
commit
f0247ea595
@ -630,7 +630,12 @@ func membersToFields(locator ProtobufLocator, t *types.Type, localPackage types.
|
||||
Extras: make(map[string]string),
|
||||
}
|
||||
|
||||
if err := protobufTagToField(tags.Get("protobuf"), &field, m, t, localPackage); err != nil {
|
||||
protobufTag := tags.Get("protobuf")
|
||||
if protobufTag == "-" {
|
||||
continue
|
||||
}
|
||||
|
||||
if err := protobufTagToField(protobufTag, &field, m, t, localPackage); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user