From afdf6b5299393596b7796679d1bef882b7b662f9 Mon Sep 17 00:00:00 2001 From: Fabricio Bottega Date: Tue, 26 Nov 2024 14:47:47 -0300 Subject: [PATCH] PTEUDO-2095: db roleclaim username should be optional (#366) --- api/v1/dbroleclaim_types.go | 2 +- .../crd/bases/persistance.atlas.infoblox.com_dbroleclaims.yaml | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/api/v1/dbroleclaim_types.go b/api/v1/dbroleclaim_types.go index 6cb691f8..509ee4c6 100644 --- a/api/v1/dbroleclaim_types.go +++ b/api/v1/dbroleclaim_types.go @@ -89,7 +89,7 @@ type DbRoleClaimStatus struct { // Time the schemas and roles were updated SchemasRolesUpdatedAt *metav1.Time `json:"schemasrolesupdatedat,omitempty"` - Username string `json:"username"` + Username string `json:"username,omitempty"` // +patchMergeKey=type // +patchStrategy=merge diff --git a/config/crd/bases/persistance.atlas.infoblox.com_dbroleclaims.yaml b/config/crd/bases/persistance.atlas.infoblox.com_dbroleclaims.yaml index a307d147..67cb0e8b 100644 --- a/config/crd/bases/persistance.atlas.infoblox.com_dbroleclaims.yaml +++ b/config/crd/bases/persistance.atlas.infoblox.com_dbroleclaims.yaml @@ -187,8 +187,6 @@ spec: type: string username: type: string - required: - - username type: object type: object served: true