Add a comment to roleRef to document that it is immutable

This commit is contained in:
Lukas Grossar
2023-02-02 22:12:43 +01:00
parent 6662b2921a
commit d76f5dae67
7 changed files with 14 additions and 8 deletions

View File

@@ -39870,7 +39870,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref common.ReferenceCallback) c
},
"roleRef": {
SchemaProps: spec.SchemaProps{
Description: "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.",
Description: "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.",
Default: map[string]interface{}{},
Ref: ref("k8s.io/api/rbac/v1.RoleRef"),
},
@@ -40169,7 +40169,7 @@ func schema_k8sio_api_rbac_v1_RoleBinding(ref common.ReferenceCallback) common.O
},
"roleRef": {
SchemaProps: spec.SchemaProps{
Description: "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.",
Description: "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. This field is immutable.",
Default: map[string]interface{}{},
Ref: ref("k8s.io/api/rbac/v1.RoleRef"),
},