Commit 8a247b84 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #45319 from ericchiang/fix-protobuf-names

Automatic merge from submit-queue (batch tested with PRs 47509, 46821, 45319, 49121, 49125) api types: fix protobuf names that are different from JSON name This PR fixes the naming of protobuf fields that are mismatched when compared to the JSON names. Because protobuf names aren't actually used during serialization, just the index, I think we can update these safely without changing the over the wire encoding (note that generated.pb.go doesn't change). Can someone verify that fixing the name won't impact backward compatibility? cc @kubernetes/sig-api-machinery-pr-reviews Fixes https://github.com/kubernetes/kubernetes/issues/45183 ```release-notes None ```
parents 76c474eb 38722d0d
...@@ -153,7 +153,7 @@ message SubjectAccessReviewSpec { ...@@ -153,7 +153,7 @@ message SubjectAccessReviewSpec {
// User is the user you're testing for. // User is the user you're testing for.
// If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups // If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
// +optional // +optional
optional string verb = 3; optional string user = 3;
// Groups is the groups you're testing for. // Groups is the groups you're testing for.
// +optional // +optional
......
...@@ -134,7 +134,7 @@ type SubjectAccessReviewSpec struct { ...@@ -134,7 +134,7 @@ type SubjectAccessReviewSpec struct {
// User is the user you're testing for. // User is the user you're testing for.
// If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups // If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
// +optional // +optional
User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=verb"` User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=user"`
// Groups is the groups you're testing for. // Groups is the groups you're testing for.
// +optional // +optional
Groups []string `json:"groups,omitempty" protobuf:"bytes,4,rep,name=groups"` Groups []string `json:"groups,omitempty" protobuf:"bytes,4,rep,name=groups"`
......
...@@ -153,7 +153,7 @@ message SubjectAccessReviewSpec { ...@@ -153,7 +153,7 @@ message SubjectAccessReviewSpec {
// User is the user you're testing for. // User is the user you're testing for.
// If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups // If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups
// +optional // +optional
optional string verb = 3; optional string user = 3;
// Groups is the groups you're testing for. // Groups is the groups you're testing for.
// +optional // +optional
......
...@@ -134,7 +134,7 @@ type SubjectAccessReviewSpec struct { ...@@ -134,7 +134,7 @@ type SubjectAccessReviewSpec struct {
// User is the user you're testing for. // User is the user you're testing for.
// If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups // If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups
// +optional // +optional
User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=verb"` User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=user"`
// Groups is the groups you're testing for. // Groups is the groups you're testing for.
// +optional // +optional
Groups []string `json:"group,omitempty" protobuf:"bytes,4,rep,name=group"` Groups []string `json:"group,omitempty" protobuf:"bytes,4,rep,name=group"`
......
...@@ -78,7 +78,7 @@ message CertificateSigningRequestSpec { ...@@ -78,7 +78,7 @@ message CertificateSigningRequestSpec {
// valid for. // valid for.
// See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 // See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3
// https://tools.ietf.org/html/rfc5280#section-4.2.1.12 // https://tools.ietf.org/html/rfc5280#section-4.2.1.12
repeated string keyUsage = 5; repeated string usages = 5;
// Information about the requesting user. // Information about the requesting user.
// See user.Info interface for details. // See user.Info interface for details.
......
...@@ -52,7 +52,7 @@ type CertificateSigningRequestSpec struct { ...@@ -52,7 +52,7 @@ type CertificateSigningRequestSpec struct {
// valid for. // valid for.
// See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 // See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3
// https://tools.ietf.org/html/rfc5280#section-4.2.1.12 // https://tools.ietf.org/html/rfc5280#section-4.2.1.12
Usages []KeyUsage `json:"usages,omitempty" protobuf:"bytes,5,opt,name=keyUsage"` Usages []KeyUsage `json:"usages,omitempty" protobuf:"bytes,5,opt,name=usages"`
// Information about the requesting user. // Information about the requesting user.
// See user.Info interface for details. // See user.Info interface for details.
......
...@@ -665,40 +665,40 @@ func init() { ...@@ -665,40 +665,40 @@ func init() {
} }
var fileDescriptorGenerated = []byte{ var fileDescriptorGenerated = []byte{
// 546 bytes of a gzipped FileDescriptorProto // 545 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x4f, 0x8f, 0xd2, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xc1, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0xe9, 0x22, 0x09, 0x0c, 0x21, 0xb8, 0xbd, 0xd8, 0x70, 0x28, 0x04, 0x2f, 0xc4, 0xc4, 0x14, 0xc6, 0x9b, 0x95, 0xa2, 0xcd, 0xd5, 0x54, 0x96, 0x0b, 0x51, 0x0f, 0x69, 0x55, 0x2e, 0x05,
0x99, 0x80, 0x46, 0x3d, 0x78, 0x6a, 0xbc, 0x98, 0x88, 0xc6, 0xee, 0x46, 0x8d, 0x9a, 0x98, 0x61, 0x09, 0x5b, 0x2d, 0x08, 0x71, 0xe0, 0x14, 0x71, 0x41, 0xa2, 0x20, 0xb2, 0x09, 0x10, 0x20, 0x21,
0xfa, 0x52, 0x46, 0x68, 0xa7, 0x99, 0x99, 0xb2, 0xd9, 0x9b, 0x1f, 0xc1, 0x83, 0x1f, 0x8a, 0xe3, 0xd7, 0x79, 0x4d, 0x4d, 0x9b, 0x38, 0xb2, 0x9d, 0x4e, 0xbb, 0x71, 0xe2, 0xcc, 0x9f, 0xd5, 0xe3,
0xc6, 0xd3, 0x9e, 0x88, 0xd4, 0x2f, 0x62, 0x5a, 0x5a, 0xfe, 0x2c, 0xae, 0xee, 0xde, 0x3a, 0x33, 0xc4, 0x69, 0xa7, 0x8a, 0x86, 0x7f, 0x04, 0x25, 0x75, 0xda, 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12, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x80, 0xcc, 0x75, 0x01, 0x76, 0x04, 0x00,
0x00, 0x00, 0x00,
} }
...@@ -46,7 +46,7 @@ message MetricValue { ...@@ -46,7 +46,7 @@ message MetricValue {
// which these metrics were calculated, when returning rate // which these metrics were calculated, when returning rate
// metrics calculated from cumulative metrics (or zero for // metrics calculated from cumulative metrics (or zero for
// non-calculated instantaneous metrics). // non-calculated instantaneous metrics).
optional int64 windowSeconds = 4; optional int64 window = 4;
// the value of the metric for this // the value of the metric for this
optional k8s.io.apimachinery.pkg.api.resource.Quantity value = 5; optional k8s.io.apimachinery.pkg.api.resource.Quantity value = 5;
......
...@@ -52,7 +52,7 @@ type MetricValue struct { ...@@ -52,7 +52,7 @@ type MetricValue struct {
// which these metrics were calculated, when returning rate // which these metrics were calculated, when returning rate
// metrics calculated from cumulative metrics (or zero for // metrics calculated from cumulative metrics (or zero for
// non-calculated instantaneous metrics). // non-calculated instantaneous metrics).
WindowSeconds *int64 `json:"window,omitempty" protobuf:"bytes,4,opt,name=windowSeconds"` WindowSeconds *int64 `json:"window,omitempty" protobuf:"bytes,4,opt,name=window"`
// the value of the metric for this // the value of the metric for this
Value resource.Quantity `json:"value" protobuf:"bytes,5,name=value"` Value resource.Quantity `json:"value" protobuf:"bytes,5,name=value"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment