mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #26924 from olegshaldybin/pluralize-subject
Automatic merge from submit-queue Rename RBAC 'subject' to 'subjects'. Rename RBAC subject field []()
This commit is contained in:
commit
b9dbe98a74
@ -2685,7 +2685,7 @@
|
|||||||
"id": "v1alpha1.ClusterRoleBinding",
|
"id": "v1alpha1.ClusterRoleBinding",
|
||||||
"description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.",
|
"description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.",
|
||||||
"required": [
|
"required": [
|
||||||
"subject",
|
"subjects",
|
||||||
"roleRef"
|
"roleRef"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -2701,7 +2701,7 @@
|
|||||||
"$ref": "v1.ObjectMeta",
|
"$ref": "v1.ObjectMeta",
|
||||||
"description": "Standard object's metadata."
|
"description": "Standard object's metadata."
|
||||||
},
|
},
|
||||||
"subject": {
|
"subjects": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "v1alpha1.Subject"
|
"$ref": "v1alpha1.Subject"
|
||||||
@ -3151,7 +3151,7 @@
|
|||||||
"id": "v1alpha1.RoleBinding",
|
"id": "v1alpha1.RoleBinding",
|
||||||
"description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.",
|
"description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.",
|
||||||
"required": [
|
"required": [
|
||||||
"subject",
|
"subjects",
|
||||||
"roleRef"
|
"roleRef"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -3167,7 +3167,7 @@
|
|||||||
"$ref": "v1.ObjectMeta",
|
"$ref": "v1.ObjectMeta",
|
||||||
"description": "Standard object's metadata."
|
"description": "Standard object's metadata."
|
||||||
},
|
},
|
||||||
"subject": {
|
"subjects": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "v1alpha1.Subject"
|
"$ref": "v1alpha1.Subject"
|
||||||
|
@ -46,7 +46,7 @@ message ClusterRoleBinding {
|
|||||||
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
|
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
// Subjects holds references to the objects the role applies to.
|
// Subjects holds references to the objects the role applies to.
|
||||||
repeated Subject subject = 2;
|
repeated Subject subjects = 2;
|
||||||
|
|
||||||
// RoleRef can only reference a ClusterRole in the global namespace.
|
// RoleRef can only reference a ClusterRole in the global namespace.
|
||||||
// If the RoleRef cannot be resolved, the Authorizer must return an error.
|
// If the RoleRef cannot be resolved, the Authorizer must return an error.
|
||||||
@ -114,7 +114,7 @@ message RoleBinding {
|
|||||||
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
|
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
// Subjects holds references to the objects the role applies to.
|
// Subjects holds references to the objects the role applies to.
|
||||||
repeated Subject subject = 2;
|
repeated Subject subjects = 2;
|
||||||
|
|
||||||
// RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace.
|
// RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace.
|
||||||
// If the RoleRef cannot be resolved, the Authorizer must return an error.
|
// If the RoleRef cannot be resolved, the Authorizer must return an error.
|
||||||
|
@ -1270,7 +1270,7 @@ func (x *RoleBinding) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("subject"))
|
r.EncodeString(codecSelferC_UTF81234, string("subjects"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
if x.Subjects == nil {
|
if x.Subjects == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
@ -1412,7 +1412,7 @@ func (x *RoleBinding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|||||||
yyv4 := &x.ObjectMeta
|
yyv4 := &x.ObjectMeta
|
||||||
yyv4.CodecDecodeSelf(d)
|
yyv4.CodecDecodeSelf(d)
|
||||||
}
|
}
|
||||||
case "subject":
|
case "subjects":
|
||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Subjects = nil
|
x.Subjects = nil
|
||||||
} else {
|
} else {
|
||||||
@ -2633,7 +2633,7 @@ func (x *ClusterRoleBinding) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("subject"))
|
r.EncodeString(codecSelferC_UTF81234, string("subjects"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
if x.Subjects == nil {
|
if x.Subjects == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
@ -2775,7 +2775,7 @@ func (x *ClusterRoleBinding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder)
|
|||||||
yyv4 := &x.ObjectMeta
|
yyv4 := &x.ObjectMeta
|
||||||
yyv4.CodecDecodeSelf(d)
|
yyv4.CodecDecodeSelf(d)
|
||||||
}
|
}
|
||||||
case "subject":
|
case "subjects":
|
||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Subjects = nil
|
x.Subjects = nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -86,7 +86,7 @@ type RoleBinding struct {
|
|||||||
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
// Subjects holds references to the objects the role applies to.
|
// Subjects holds references to the objects the role applies to.
|
||||||
Subjects []Subject `json:"subject" protobuf:"bytes,2,rep,name=subjects"`
|
Subjects []Subject `json:"subjects" protobuf:"bytes,2,rep,name=subjects"`
|
||||||
|
|
||||||
// RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace.
|
// RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace.
|
||||||
// If the RoleRef cannot be resolved, the Authorizer must return an error.
|
// If the RoleRef cannot be resolved, the Authorizer must return an error.
|
||||||
@ -135,7 +135,7 @@ type ClusterRoleBinding struct {
|
|||||||
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
// Subjects holds references to the objects the role applies to.
|
// Subjects holds references to the objects the role applies to.
|
||||||
Subjects []Subject `json:"subject" protobuf:"bytes,2,rep,name=subjects"`
|
Subjects []Subject `json:"subjects" protobuf:"bytes,2,rep,name=subjects"`
|
||||||
|
|
||||||
// RoleRef can only reference a ClusterRole in the global namespace.
|
// RoleRef can only reference a ClusterRole in the global namespace.
|
||||||
// If the RoleRef cannot be resolved, the Authorizer must return an error.
|
// If the RoleRef cannot be resolved, the Authorizer must return an error.
|
||||||
|
@ -40,7 +40,7 @@ func (ClusterRole) SwaggerDoc() map[string]string {
|
|||||||
var map_ClusterRoleBinding = map[string]string{
|
var map_ClusterRoleBinding = map[string]string{
|
||||||
"": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.",
|
"": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.",
|
||||||
"metadata": "Standard object's metadata.",
|
"metadata": "Standard object's metadata.",
|
||||||
"subject": "Subjects holds references to the objects the role applies to.",
|
"subjects": "Subjects holds references to the objects the role applies to.",
|
||||||
"roleRef": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.",
|
"roleRef": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ func (Role) SwaggerDoc() map[string]string {
|
|||||||
var map_RoleBinding = map[string]string{
|
var map_RoleBinding = map[string]string{
|
||||||
"": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.",
|
"": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.",
|
||||||
"metadata": "Standard object's metadata.",
|
"metadata": "Standard object's metadata.",
|
||||||
"subject": "Subjects holds references to the objects the role applies to.",
|
"subjects": "Subjects holds references to the objects the role applies to.",
|
||||||
"roleRef": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.",
|
"roleRef": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user