mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-17 23:58:40 +02:00
* Fix (#2644) - Add json tags to InfrastructureRole struct * Fix (#2644) - Add name tags to InfrastructureRole struct --------- Co-authored-by: Hemakshi Sachdev <hsachdev@purestorage.com>
This commit is contained in:
co-authored by
Hemakshi Sachdev
parent
d60b424d79
commit
34f9cfbcda
@@ -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
|
SecretName spec.NamespacedName `name:"secretname,omitempty"`
|
||||||
|
|
||||||
UserKey string
|
UserKey string `name:"userkey,omitempty"`
|
||||||
PasswordKey string
|
PasswordKey string `name:"passwordkey,omitempty"`
|
||||||
RoleKey string
|
RoleKey string `name:"rolekey,omitempty"`
|
||||||
|
|
||||||
DefaultUserValue string
|
DefaultUserValue string `name:"defaultuservalue,omitempty"`
|
||||||
DefaultRoleValue string
|
DefaultRoleValue string `name:"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
|
Details string `name:"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
|
Template bool `name:"template,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Auth describes authentication specific configuration parameters
|
// Auth describes authentication specific configuration parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user