Skip to content

Commit

Permalink
Merge pull request #1961 from crossplane-contrib/backport-1957-to-rel…
Browse files Browse the repository at this point in the history
…ease-0.45
  • Loading branch information
MisterMX authored Nov 27, 2023
2 parents 2dfb9a7 + 67577f3 commit 426ad52
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/clients/database/rds.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ func IsUpToDate(ctx context.Context, kube client.Client, r *v1beta1.RDSInstance,
cmpopts.IgnoreTypes(&xpv1.Reference{}, &xpv1.Selector{}, []xpv1.Reference{}),
cmpopts.IgnoreFields(v1beta1.RDSInstanceParameters{}, "Region"),
cmpopts.IgnoreFields(v1beta1.RDSInstanceParameters{}, "Tags"),
cmpopts.IgnoreFields(v1beta1.RDSInstanceParameters{}, "DBName"),
cmpopts.IgnoreFields(v1beta1.RDSInstanceParameters{}, "EngineVersion"),
cmpopts.IgnoreFields(v1beta1.RDSInstanceParameters{}, "SkipFinalSnapshotBeforeDeletion"),
cmpopts.IgnoreFields(v1beta1.RDSInstanceParameters{}, "FinalDBSnapshotIdentifier"),
Expand Down
15 changes: 15 additions & 0 deletions pkg/clients/database/rds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,21 @@ func TestIsUpToDate(t *testing.T) {
},
want: true,
},
"IgnoresDBName": {
args: args{
db: rdstypes.DBInstance{
DBName: nil,
},
r: v1beta1.RDSInstance{
Spec: v1beta1.RDSInstanceSpec{
ForProvider: v1beta1.RDSInstanceParameters{
DBName: &dbName,
},
},
},
},
want: true,
},
"SamePassword": {
args: args{
db: rdstypes.DBInstance{
Expand Down

0 comments on commit 426ad52

Please sign in to comment.