mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Fix skipping - protobuf fields
Match changes in https://github.com/kubernetes/gengo/pull/19
This commit is contained in:
parent
dba16d052c
commit
f0247ea595
1 changed files with 6 additions and 1 deletions
|
|
@ -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 a new issue