updated vendor

This commit is contained in:
2026-06-16 08:02:19 +02:00
parent 2f7f99d3f0
commit 77299d0c64
1283 changed files with 67302 additions and 208958 deletions
+13 -2
View File
@@ -47,6 +47,7 @@ message ClusterRole {
// Rules holds all the PolicyRules for this ClusterRole
// +optional
// +listType=atomic
// +k8s:alpha(since: "1.36")=+k8s:optional
repeated PolicyRule rules = 2;
// AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
@@ -67,10 +68,12 @@ message ClusterRoleBinding {
// Subjects holds references to the objects the role applies to.
// +optional
// +listType=atomic
// +k8s:alpha(since: "1.36")=+k8s:optional
repeated Subject subjects = 2;
// RoleRef can only reference a ClusterRole in the global namespace.
// If the RoleRef cannot be resolved, the Authorizer must return an error.
// +required
optional RoleRef roleRef = 3;
}
@@ -101,6 +104,8 @@ message ClusterRoleList {
message PolicyRule {
// Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
// +listType=atomic
// +required
// +k8s:alpha(since: "1.36")=+k8s:required
repeated string verbs = 1;
// APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of
@@ -137,6 +142,7 @@ message Role {
// Rules holds all the PolicyRules for this Role
// +optional
// +listType=atomic
// +k8s:alpha(since: "1.36")=+k8s:optional
repeated PolicyRule rules = 2;
}
@@ -152,10 +158,12 @@ message RoleBinding {
// Subjects holds references to the objects the role applies to.
// +optional
// +listType=atomic
// +k8s:alpha(since: "1.36")=+k8s:optional
repeated Subject subjects = 2;
// 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.
// +required
optional RoleRef roleRef = 3;
}
@@ -184,14 +192,16 @@ message RoleList {
// RoleRef contains information that points to the role being used
message RoleRef {
// APIGroup is the group for the resource being referenced
// +optional
optional string apiGroup = 1;
// Kind is the type of resource being referenced
// +required
optional string kind = 2;
// Name is the name of resource being referenced
// +required
// +k8s:required
// +k8s:alpha(since: "1.36")=+k8s:required
optional string name = 3;
}
@@ -200,6 +210,7 @@ message RoleRef {
message Subject {
// Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
// If the Authorizer does not recognized the kind value, the Authorizer should report an error.
// +required
optional string kind = 1;
// APIVersion holds the API group and version of the referenced subject.
@@ -211,7 +222,7 @@ message Subject {
// Name of the object being referenced.
// +required
// +k8s:required
// +k8s:alpha(since: "1.36")=+k8s:required
optional string name = 3;
// Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
-46
View File
@@ -1,46 +0,0 @@
//go:build kubernetes_protomessage_one_more_release
// +build kubernetes_protomessage_one_more_release
/*
Copyright The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by go-to-protobuf. DO NOT EDIT.
package v1alpha1
func (*AggregationRule) ProtoMessage() {}
func (*ClusterRole) ProtoMessage() {}
func (*ClusterRoleBinding) ProtoMessage() {}
func (*ClusterRoleBindingList) ProtoMessage() {}
func (*ClusterRoleList) ProtoMessage() {}
func (*PolicyRule) ProtoMessage() {}
func (*Role) ProtoMessage() {}
func (*RoleBinding) ProtoMessage() {}
func (*RoleBindingList) ProtoMessage() {}
func (*RoleList) ProtoMessage() {}
func (*RoleRef) ProtoMessage() {}
func (*Subject) ProtoMessage() {}
+13 -2
View File
@@ -49,6 +49,8 @@ const (
type PolicyRule struct {
// Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
// +listType=atomic
// +required
// +k8s:alpha(since: "1.36")=+k8s:required
Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"`
// APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of
@@ -78,6 +80,7 @@ type PolicyRule struct {
type Subject struct {
// Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
// If the Authorizer does not recognized the kind value, the Authorizer should report an error.
// +required
Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"`
// APIVersion holds the API group and version of the referenced subject.
// Defaults to "v1" for ServiceAccount subjects.
@@ -87,7 +90,7 @@ type Subject struct {
APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"`
// Name of the object being referenced.
// +required
// +k8s:required
// +k8s:alpha(since: "1.36")=+k8s:required
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
// the Authorizer should report an error.
@@ -98,12 +101,14 @@ type Subject struct {
// RoleRef contains information that points to the role being used
type RoleRef struct {
// APIGroup is the group for the resource being referenced
// +optional
APIGroup string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`
// Kind is the type of resource being referenced
// +required
Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"`
// Name is the name of resource being referenced
// +required
// +k8s:required
// +k8s:alpha(since: "1.36")=+k8s:required
Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
}
@@ -121,6 +126,7 @@ type Role struct {
// Rules holds all the PolicyRules for this Role
// +optional
// +listType=atomic
// +k8s:alpha(since: "1.36")=+k8s:optional
Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"`
}
@@ -140,10 +146,12 @@ type RoleBinding struct {
// Subjects holds references to the objects the role applies to.
// +optional
// +listType=atomic
// +k8s:alpha(since: "1.36")=+k8s:optional
Subjects []Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"`
// 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.
// +required
RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"`
}
@@ -190,6 +198,7 @@ type ClusterRole struct {
// Rules holds all the PolicyRules for this ClusterRole
// +optional
// +listType=atomic
// +k8s:alpha(since: "1.36")=+k8s:optional
Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"`
// AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
@@ -224,10 +233,12 @@ type ClusterRoleBinding struct {
// Subjects holds references to the objects the role applies to.
// +optional
// +listType=atomic
// +k8s:alpha(since: "1.36")=+k8s:optional
Subjects []Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"`
// RoleRef can only reference a ClusterRole in the global namespace.
// If the RoleRef cannot be resolved, the Authorizer must return an error.
// +required
RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"`
}