mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Make multi-key tags more explicit
This is in prep to simplify tag logic. Don't rely on processing commas as new tag delimiters. Put new tags on new lines. This had zero effect on generated code (as intended).
This commit is contained in:
@@ -126,7 +126,8 @@ type RoleList struct {
|
||||
Items []Role
|
||||
}
|
||||
|
||||
// +genclient=true,nonNamespaced=true
|
||||
// +genclient=true
|
||||
// +nonNamespaced=true
|
||||
|
||||
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
|
||||
type ClusterRole struct {
|
||||
@@ -138,7 +139,8 @@ type ClusterRole struct {
|
||||
Rules []PolicyRule
|
||||
}
|
||||
|
||||
// +genclient=true,nonNamespaced=true
|
||||
// +genclient=true
|
||||
// +nonNamespaced=true
|
||||
|
||||
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace,
|
||||
// and adds who information via Subject.
|
||||
|
||||
@@ -113,7 +113,8 @@ type RoleList struct {
|
||||
Items []Role `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||
}
|
||||
|
||||
// +genclient=true,nonNamespaced=true
|
||||
// +genclient=true
|
||||
// +nonNamespaced=true
|
||||
|
||||
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
|
||||
type ClusterRole struct {
|
||||
@@ -125,7 +126,8 @@ type ClusterRole struct {
|
||||
Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"`
|
||||
}
|
||||
|
||||
// +genclient=true,nonNamespaced=true
|
||||
// +genclient=true
|
||||
// +nonNamespaced=true
|
||||
|
||||
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace,
|
||||
// and adds who information via Subject.
|
||||
|
||||
Reference in New Issue
Block a user