Skip to content
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

rdsinstance: AWS Backup might also manage PreferredBackupWindow #1406

Merged

Conversation

chlunde
Copy link
Collaborator

@chlunde chlunde commented Aug 5, 2022

Description of your changes

We already have special case handling for BackupRetentionPeriod when AWS
Backup is enabled. Add similar handling for PreferredBackupWindow. This
attribute is ready only when AWS Backup is enabled.

We run into issues like this because of late initialization which sets
fields into the spec which in some cases are more like status fields.

Related: #1356

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

  • unit test
  • ran against real cluster and checked that the error is gone

We already have special case handling for BackupRetentionPeriod when AWS
Backup is enabled. Add similar handling for PreferredBackupWindow. This
attribute is ready only when AWS Backup is enabled.

We run into issues like this because of late initialization which sets
fields into the spec which in some cases are more like status fields.

Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
@chlunde chlunde requested a review from haarchri August 5, 2022 11:57
@haarchri haarchri merged commit f11a1f1 into crossplane-contrib:master Aug 8, 2022
@chlunde chlunde deleted the awsbackup-window branch August 8, 2022 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants