Skip to content

Commit

Permalink
Remove masterUserPasswordSecretRef as a required attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Lopez <alcaraz1983@gmail.com>
  • Loading branch information
loalf committed Mar 27, 2023
1 parent f0163fa commit 2c659fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 8 additions & 2 deletions apis/rds/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,14 @@ type CustomDBClusterParameters struct {
// The password for the master database user. This password can contain any
// printable ASCII character except "/", """, or "@".
//
// Constraints: Must contain from 8 to 41 characters. Required.
MasterUserPasswordSecretRef *xpv1.SecretKeySelector `json:"masterUserPasswordSecretRef"`
// This parameter will be required in the following scenarios:
// - The first cluster for a global Aurora cluster
// - Any cluster as long as it doesn't belong to a global Aurora cluster
//
// This parameter is required for creation of a primary cluster. However, it is not required when attaching a secondary regional cluster to an existing global cluster.
//
// Constraints: Must contain from 8 to 41 characters.
MasterUserPasswordSecretRef *xpv1.SecretKeySelector `json:"masterUserPasswordSecretRef,omitempty"`

// A list of VPC security groups that the DB cluster will belong to.
//
Expand Down
10 changes: 7 additions & 3 deletions package/crds/rds.aws.crossplane.io_dbclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,13 @@ spec:
masterUserPasswordSecretRef:
description: "The password for the master database user. This
password can contain any printable ASCII character except \"/\",
\"\"\", or \"@\". \n Constraints: Must contain from 8 to 41
characters. Required."
\"\"\", or \"@\". \n This parameter will be required in the
following scenarios: - The first cluster for a global Aurora
cluster - Any cluster as long as it doesn't belong to a global
Aurora cluster \n This parameter is required for creation of
a primary cluster. However, it is not required when attaching
a secondary regional cluster to an existing global cluster.
\n Constraints: Must contain from 8 to 41 characters."
properties:
key:
description: The key to select.
Expand Down Expand Up @@ -1090,7 +1095,6 @@ spec:
type: array
required:
- engine
- masterUserPasswordSecretRef
- region
type: object
providerConfigRef:
Expand Down

0 comments on commit 2c659fa

Please sign in to comment.