From 1253b79197f14c07f8f19a799f70ac16b93f2e0a Mon Sep 17 00:00:00 2001 From: Krish Agarwal Date: Mon, 17 Nov 2025 15:33:28 -0500 Subject: [PATCH] added default option for user groups --- openapi/generated_openapi/zz_generated.openapi.go | 1 + openapi/openapi.json | 1 + user/v1/types.go | 1 + 3 files changed, 3 insertions(+) diff --git a/openapi/generated_openapi/zz_generated.openapi.go b/openapi/generated_openapi/zz_generated.openapi.go index d60df535e7e..63aefff26de 100644 --- a/openapi/generated_openapi/zz_generated.openapi.go +++ b/openapi/generated_openapi/zz_generated.openapi.go @@ -67476,6 +67476,7 @@ func schema_openshift_api_user_v1_User(ref common.ReferenceCallback) common.Open "groups": { SchemaProps: spec.SchemaProps{ Description: "groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User.", + Default: []interface{}{}, Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ diff --git a/openapi/openapi.json b/openapi/openapi.json index 785c023b914..02428ef3594 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -39365,6 +39365,7 @@ "groups": { "description": "groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User.", "type": "array", + "default": [], "items": { "type": "string", "default": "" diff --git a/user/v1/types.go b/user/v1/types.go index 64ae8c8300b..b3690be2b65 100644 --- a/user/v1/types.go +++ b/user/v1/types.go @@ -36,6 +36,7 @@ type User struct { // groups specifies group names this user is a member of. // This field is deprecated and will be removed in a future release. // Instead, create a Group object containing the name of this User. + // +default=[] Groups []string `json:"groups" protobuf:"bytes,4,rep,name=groups"` }