Skip to content

Refine stale VNet link removal logic to only delete links created by tyger#318

Merged
johnstairs merged 1 commit intomainfrom
johnstairs/only-delete-vnet-links-if-tyger-created
May 5, 2026
Merged

Refine stale VNet link removal logic to only delete links created by tyger#318
johnstairs merged 1 commit intomainfrom
johnstairs/only-delete-vnet-links-if-tyger-created

Conversation

@johnstairs
Copy link
Copy Markdown
Member

This change makes private DNS zone reconciliation safer when removing stale virtual network links.

Previously, stale VNet links were deleted whenever their destination VNet was no longer in the expected set. Now, the installer only deletes a stale VNet link if it has the Tyger environment tag (tyger-environment) matching the current environment name. This avoids deleting links that were created manually or by another tool.

@johnstairs johnstairs changed the title Refine stale VNet link removal logic to only delete links created by tiger Refine stale VNet link removal logic to only delete links created by tyger May 5, 2026
@johnstairs johnstairs marked this pull request as ready for review May 5, 2026 21:14
@johnstairs johnstairs requested a review from Copilot May 5, 2026 21:14
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR makes private DNS zone reconciliation safer by refining the stale virtual network (VNet) link cleanup logic so that it only deletes links that were created by Tyger for the current environment (identified via the tyger-environment tag). This reduces the risk of the installer removing links that were created manually or by other tooling.

Changes:

  • Updates a private endpoint creation log message to describe the target as a generic “resource” rather than specifically a storage account.
  • Adds tag-based filtering to stale private DNS zone VNet link removal so only Tyger-owned links for the current environment are deleted.
  • Expands inline documentation describing the safer stale-link removal behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@johnstairs johnstairs requested review from hansenms and naegelejd May 5, 2026 21:22
@johnstairs johnstairs merged commit 0414a0b into main May 5, 2026
63 of 64 checks passed
@johnstairs johnstairs deleted the johnstairs/only-delete-vnet-links-if-tyger-created branch May 5, 2026 22:59
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.

3 participants