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

Allow recovery if resources have a missing AzureName #4460

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

theunrepentantgeek
Copy link
Member

@theunrepentantgeek theunrepentantgeek commented Nov 21, 2024

What this PR does

Allows AzureName to be updated if it somehow ends up blank due to a glitch with our webhooks.

Closes #4306

Blocks construction of a fully qualified resource ID if AzureName is blank, preventing attempts to create the resource and ensuring any attempt to delete the resource can proceed.

Closes #4307

Special notes

Adds a guard clause to the generated Owner() function to avoid a nil panic if we end up with a resource lacking an owner.

Checklist

  • this PR contains tests

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.

Allow deletion of resources with AzureName empty Allow setting AzureName if it is currently blank
1 participant