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

Fix BackupVaults/BackupInstance extension to exit early on terminal states #4180

Merged
merged 5 commits into from
Aug 15, 2024

Conversation

super-harsh
Copy link
Collaborator

Closes #4135

What this PR does / why we need it:

Fix BackupVaults/BackupInstance extension to exit early on terminal states. Most of the changes are reverted from commit which introduced the bug.

@super-harsh super-harsh marked this pull request as draft August 6, 2024 02:59
@super-harsh super-harsh self-assigned this Aug 6, 2024
@super-harsh super-harsh modified the milestones: v2.10.0, v2.9.0 Aug 6, 2024
@super-harsh super-harsh marked this pull request as ready for review August 6, 2024 03:06
Copy link
Member

@matthchr matthchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a test that could cover this case/issue?

"github.com/Azure/azure-service-operator/v2/internal/util/to"
"github.com/Azure/azure-service-operator/v2/pkg/genruntime"
"github.com/Azure/azure-service-operator/v2/pkg/genruntime/extensions"
)

var _ extensions.PostReconciliationChecker = &BackupVaultsBackupInstanceExtension{}

var protectionError = "ProtectionError"
var terminalStates = set.Make(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some documentation about how we determined this list, and what exactly it means to be terminal here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding these URLs as comments would be useful, so that a future maintainer can go verify if things change in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@super-harsh super-harsh enabled auto-merge August 15, 2024 02:46
@super-harsh super-harsh added this pull request to the merge queue Aug 15, 2024
Merged via the queue into main with commit 75e617d Aug 15, 2024
8 checks passed
@super-harsh super-harsh deleted the fix/backup-vault-extension branch August 15, 2024 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

PostReconcileCheck not running on BackupVaultBackupInstance resource
4 participants