mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
api types: fix protobuf names that are different from JSON name
This commit is contained in:
parent
d20414e2b6
commit
36c771826e
@ -131,7 +131,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"`
|
||||||
|
@ -131,7 +131,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"`
|
||||||
|
@ -51,7 +51,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.
|
||||||
|
@ -48,7 +48,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"`
|
||||||
|
Loading…
Reference in New Issue
Block a user