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

refactor: allow getting VNET_GUID for overlay node configuration from the helm values #671

Merged
merged 6 commits into from
Feb 4, 2025

Conversation

Bryce-Soghigian
Copy link
Collaborator

Fixes #556

Description
Users using custom vnet will run into errors fetching the VNET_GUID if they haven't assigned network/VNET/READ to their cluster identity.

Let's allow populating the value in the chart, while leaving the default resolution if it's unpopulated. Note that VNET_GUID is only required for azure cni with overlay.

How was this change tested?

  • make az-all

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note


@Bryce-Soghigian
Copy link
Collaborator Author

image
We are able to get vnet guid dynamically now

@Bryce-Soghigian Bryce-Soghigian self-assigned this Feb 2, 2025
@juan-lee
Copy link

juan-lee commented Feb 2, 2025

Where are the tests?

@Bryce-Soghigian
Copy link
Collaborator Author

@juan-lee we already have tests https://github.com/Azure/karpenter-provider-azure/blob/main/pkg/providers/instancetype/suite_test.go#L524 that validate we are setting this value for overlay clusters and assert its there here but I can add more if you would like that

@Bryce-Soghigian Bryce-Soghigian merged commit b3ec519 into main Feb 4, 2025
13 checks passed
@Bryce-Soghigian Bryce-Soghigian deleted the bsoghigian/removing-hard-dependency-on-vnet branch February 4, 2025 23:35
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.

panic: getting VNET GUID
3 participants