Skip to content

Fix (#2644) - Add json tags to InfrastructureRole struct #2645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions pkg/util/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
//
Expand All @@ -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
Expand Down
Loading