From 34f9cfbcdaa40c67880a3f5fe4c84fc8533ecfb4 Mon Sep 17 00:00:00 2001 From: Hemakshi Sachdev Date: Fri, 31 May 2024 17:47:26 +0530 Subject: [PATCH] Fix (#2644) - Add json tags to InfrastructureRole struct (#2645) * Fix (#2644) - Add json tags to InfrastructureRole struct * Fix (#2644) - Add name tags to InfrastructureRole struct --------- Co-authored-by: Hemakshi Sachdev --- pkg/util/config/config.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/util/config/config.go b/pkg/util/config/config.go index d66a8b1c2..5a2de0a7f 100644 --- a/pkg/util/config/config.go +++ b/pkg/util/config/config.go @@ -70,17 +70,17 @@ type Resources struct { type InfrastructureRole struct { // Name of a secret which describes the role, and optionally name of a // configmap with an extra information - SecretName spec.NamespacedName + SecretName spec.NamespacedName `name:"secretname,omitempty"` - UserKey string - PasswordKey string - RoleKey string + UserKey string `name:"userkey,omitempty"` + PasswordKey string `name:"passwordkey,omitempty"` + RoleKey string `name:"rolekey,omitempty"` - DefaultUserValue string - DefaultRoleValue string + DefaultUserValue string `name:"defaultuservalue,omitempty"` + DefaultRoleValue string `name:"defaultrolevalue,omitempty"` // This field point out the detailed yaml definition of the role, if exists - Details string + Details string `name:"details,omitempty"` // Specify if a secret contains multiple fields in the following format: // @@ -91,7 +91,7 @@ type InfrastructureRole struct { // If it does, Name/Password/Role are interpreted not as unique field // names, but as a template. - Template bool + Template bool `name:"template,omitempty"` } // Auth describes authentication specific configuration parameters