Skip to content

Commit 34f9cfb

Browse files
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 <hsachdev@purestorage.com>
1 parent d60b424 commit 34f9cfb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkg/util/config/config.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ type Resources struct {
7070
type InfrastructureRole struct {
7171
// Name of a secret which describes the role, and optionally name of a
7272
// configmap with an extra information
73-
SecretName spec.NamespacedName
73+
SecretName spec.NamespacedName `name:"secretname,omitempty"`
7474

75-
UserKey string
76-
PasswordKey string
77-
RoleKey string
75+
UserKey string `name:"userkey,omitempty"`
76+
PasswordKey string `name:"passwordkey,omitempty"`
77+
RoleKey string `name:"rolekey,omitempty"`
7878

79-
DefaultUserValue string
80-
DefaultRoleValue string
79+
DefaultUserValue string `name:"defaultuservalue,omitempty"`
80+
DefaultRoleValue string `name:"defaultrolevalue,omitempty"`
8181

8282
// This field point out the detailed yaml definition of the role, if exists
83-
Details string
83+
Details string `name:"details,omitempty"`
8484

8585
// Specify if a secret contains multiple fields in the following format:
8686
//
@@ -91,7 +91,7 @@ type InfrastructureRole struct {
9191
// If it does, Name/Password/Role are interpreted not as unique field
9292
// names, but as a template.
9393

94-
Template bool
94+
Template bool `name:"template,omitempty"`
9595
}
9696

9797
// Auth describes authentication specific configuration parameters

0 commit comments

Comments
 (0)