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

Ensure reconciling condition overwrites AzureResourceNotFound #3834

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

matthchr
Copy link
Member

This fixes #3788.

AzureResourceNotFound only comes up when ReconcilePolicy is skip. This conditions priority being less than Reconciling allows skip -> reconcile to immediately update the condition to Reconciling rather than continuing to report AzureResourceNotFound until the resource is created.

If applicable:

  • this PR contains documentation
  • this PR contains tests
  • this PR contains YAML Samples

This fixes Azure#3788.

AzureResourceNotFound only comes up when ReconcilePolicy is skip. This
conditions priority being less than Reconciling allows skip -> reconcile
to immediately update the condition to Reconciling rather than continuing to
report AzureResourceNotFound until the resource is created.
@matthchr
Copy link
Member Author

/ok-to-test sha=10c6c51

Copy link
Member

@theunrepentantgeek theunrepentantgeek left a comment

Choose a reason for hiding this comment

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

A tweak to comment wording, otherwise looks good. #approved

ReasonReconciling.Name: -1,
// AzureResourceNotFound only comes up when ReconcilePolicy is skip. This conditions priority being less than
// Reconciling allows skip -> reconcile to immediately update the condition to Reconciling rather than continuing to
// report AzureResourceNotFound until the resource is created.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// report AzureResourceNotFound until the resource is created.
// report AzureResourceNotFound until resource has completed.

Copy link
Member Author

Choose a reason for hiding this comment

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

This phrasing doesn't seem clearer to me?

@matthchr matthchr added this pull request to the merge queue Mar 5, 2024
Merged via the queue into Azure:main with commit 71f8aee Mar 5, 2024
8 checks passed
@matthchr matthchr deleted the feature/fix-conditions-priority-bug branch March 5, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
2 participants