-
Notifications
You must be signed in to change notification settings - Fork 160
[WIP] feat: support privateDNSZoneName parameter in storage class #2872
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
base: master
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this 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 adds support for the privateDNSZoneName parameter in storage class configurations for the Azure File CSI driver. This parameter allows users to specify a custom private DNS zone name when creating storage accounts with private endpoints.
Key Changes
- Added
privateDNSZoneNameparameter support in storage class with validation that it can only be used with private endpoints - Default value of "privatelink" is set when private endpoints are enabled but no custom name is provided
- Added unit test for validation logic and updated e2e tests to include the new parameter
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/azurefile/azurefile.go | Added constant definition for privateDNSZoneNameField |
| pkg/azurefile/controllerserver.go | Implemented parameter parsing, validation logic, and default value assignment |
| pkg/azurefile/controllerserver_test.go | Added unit test for validation when privateDNSZoneName is used without private endpoint |
| test/e2e/dynamic_provisioning_test.go | Added privateDNSZoneName parameter to e2e test cases |
| pkg/azurefile/azure_test.go | Added duplicate test case and formatting changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fix fix fix fix fix fix fix fix fix
111a78c to
535b6c2
Compare
|
@andyzhangx: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
I'm not sure that this addresses the GitHub Issue. As was noted in the issue, it would be helpful to provide values to a variable or combination of variables that allow us to dictate where a pre-existing private DNS zone (i.e. privatelink.file.core.windows.net) is already created. An easy solution would be to provide a variable like |
What type of PR is this?
/kind feature
What this PR does / why we need it:
feat: support privateDNSZoneName parameter in storage class
Which issue(s) this PR fixes:
Fixes #2845
Requirements:
Special notes for your reviewer:
Release note: