Update the APIGroup field to be optional

This commit is contained in:
pranshul gupta
2026-02-13 17:04:17 +05:30
parent ed551f6826
commit eb3252e0e0
7 changed files with 9 additions and 9 deletions

View File

@@ -44879,7 +44879,7 @@ func schema_k8sio_api_rbac_v1_RoleRef(ref common.ReferenceCallback) common.OpenA
},
},
},
Required: []string{"apiGroup", "kind", "name"},
Required: []string{"kind", "name"},
},
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
@@ -45565,7 +45565,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleRef(ref common.ReferenceCallback) common
},
},
},
Required: []string{"apiGroup", "kind", "name"},
Required: []string{"kind", "name"},
},
},
}
@@ -46241,7 +46241,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleRef(ref common.ReferenceCallback) common.
},
},
},
Required: []string{"apiGroup", "kind", "name"},
Required: []string{"kind", "name"},
},
},
}

View File

@@ -183,7 +183,7 @@ message RoleList {
// +structType=atomic
message RoleRef {
// APIGroup is the group for the resource being referenced
// +required
// +optional
optional string apiGroup = 1;
// Kind is the type of resource being referenced

View File

@@ -102,7 +102,7 @@ type Subject struct {
// +structType=atomic
type RoleRef struct {
// APIGroup is the group for the resource being referenced
// +required
// +optional
APIGroup string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`
// Kind is the type of resource being referenced
// +required

View File

@@ -188,7 +188,7 @@ message RoleList {
// RoleRef contains information that points to the role being used
message RoleRef {
// APIGroup is the group for the resource being referenced
// +required
// +optional
optional string apiGroup = 1;
// Kind is the type of resource being referenced

View File

@@ -101,7 +101,7 @@ 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
// +required
// +optional
APIGroup string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`
// Kind is the type of resource being referenced
// +required

View File

@@ -189,7 +189,7 @@ message RoleList {
// RoleRef contains information that points to the role being used
message RoleRef {
// APIGroup is the group for the resource being referenced
// +required
// +optional
optional string apiGroup = 1;
// Kind is the type of resource being referenced

View File

@@ -101,7 +101,7 @@ 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
// +required
// +optional
APIGroup string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`
// Kind is the type of resource being referenced
// +required