Fix (#2644) - Add name tags to InfrastructureRole struct (#2659)

This commit is contained in:
Hemakshi Sachdev 2024-06-12 14:42:28 +05:30 committed by GitHub
parent 1f47f59267
commit 032743b8f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 8 deletions

View File

@ -70,17 +70,17 @@ type Resources struct {
type InfrastructureRole struct { type InfrastructureRole struct {
// Name of a secret which describes the role, and optionally name of a // Name of a secret which describes the role, and optionally name of a
// configmap with an extra information // configmap with an extra information
SecretName spec.NamespacedName `name:"secretname,omitempty"` SecretName spec.NamespacedName `json:"secretname,omitempty"`
UserKey string `name:"userkey,omitempty"` UserKey string `json:"userkey,omitempty"`
PasswordKey string `name:"passwordkey,omitempty"` PasswordKey string `json:"passwordkey,omitempty"`
RoleKey string `name:"rolekey,omitempty"` RoleKey string `json:"rolekey,omitempty"`
DefaultUserValue string `name:"defaultuservalue,omitempty"` DefaultUserValue string `json:"defaultuservalue,omitempty"`
DefaultRoleValue string `name:"defaultrolevalue,omitempty"` DefaultRoleValue string `json:"defaultrolevalue,omitempty"`
// This field point out the detailed yaml definition of the role, if exists // This field point out the detailed yaml definition of the role, if exists
Details string `name:"details,omitempty"` Details string `json:"details,omitempty"`
// Specify if a secret contains multiple fields in the following format: // 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 // If it does, Name/Password/Role are interpreted not as unique field
// names, but as a template. // names, but as a template.
Template bool `name:"template,omitempty"` Template bool `json:"template,omitempty"`
} }
// Auth describes authentication specific configuration parameters // Auth describes authentication specific configuration parameters