mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Fix typos in rbac api.
Signed-off-by: zhanluxianshen <irelandabby883@gmail.com>
This commit is contained in:
parent
f4e246bc93
commit
609b01f971
@ -84,7 +84,7 @@ type Subject struct {
|
|||||||
// Defaults to "" for ServiceAccount subjects.
|
// Defaults to "" for ServiceAccount subjects.
|
||||||
// Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
|
// Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
|
||||||
// +optional
|
// +optional
|
||||||
APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,2,opt.name=apiGroup"`
|
APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,2,opt,name=apiGroup"`
|
||||||
// Name of the object being referenced.
|
// Name of the object being referenced.
|
||||||
Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
|
Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
|
||||||
// Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
|
// Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
|
||||||
|
@ -84,7 +84,7 @@ type Subject struct {
|
|||||||
// Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects.
|
// Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects.
|
||||||
// +k8s:conversion-gen=false
|
// +k8s:conversion-gen=false
|
||||||
// +optional
|
// +optional
|
||||||
APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt.name=apiVersion"`
|
APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"`
|
||||||
// Name of the object being referenced.
|
// Name of the object being referenced.
|
||||||
Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
|
Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
|
||||||
// Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
|
// Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
|
||||||
|
@ -84,7 +84,7 @@ type Subject struct {
|
|||||||
// Defaults to "" for ServiceAccount subjects.
|
// Defaults to "" for ServiceAccount subjects.
|
||||||
// Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
|
// Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
|
||||||
// +optional
|
// +optional
|
||||||
APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,2,opt.name=apiGroup"`
|
APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,2,opt,name=apiGroup"`
|
||||||
// Name of the object being referenced.
|
// Name of the object being referenced.
|
||||||
Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
|
Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
|
||||||
// Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
|
// Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
|
||||||
|
Loading…
Reference in New Issue
Block a user