mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-06 13:18:21 +00:00
Fix skipping - protobuf fields
Match changes in https://github.com/kubernetes/gengo/pull/19
This commit is contained in:
@@ -630,7 +630,12 @@ func membersToFields(locator ProtobufLocator, t *types.Type, localPackage types.
|
|||||||
Extras: make(map[string]string),
|
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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user