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
Fix flaws in Azure CSI translation #90162
Fix flaws in Azure CSI translation #90162
Conversation
Hi @rfranzke. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
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.
Nits
staging/src/k8s.io/csi-translation-lib/plugins/azure_disk_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/csi-translation-lib/plugins/azure_disk_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/csi-translation-lib/plugins/azure_file_test.go
Outdated
Show resolved
Hide resolved
/assign @andyzhangx @feiskyer @saad-ali |
0a374a0
to
61a0f85
Compare
/ok-to-test |
@rfranzke thanks for your contribution! |
61a0f85
to
0f335a8
Compare
/test pull-kubernetes-e2e-gce |
0f335a8
to
b96dd38
Compare
/assign @msau42 @davidz627 |
/hold |
/hold cancel |
This PR would require following components change(adopt the PR) to make azure file csi migration works:
And only works with azure file csi driver on master branch (with PR merged) |
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.
/approve
accountName, err := getStorageAccountName(azureSource.SecretName) | ||
if err != nil { | ||
klog.Warningf("getStorageAccountName(%s) returned with error: %v", azureSource.SecretName, err) | ||
accountName = azureSource.SecretName |
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.
Is this a normal condition? Should it fail instead?
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.
in such condition, secret is spedified by user, so it does not obey the naming rule, and this is only for volumeid generation, we will use NodeStageSecret for secret passing:
NodeStageSecretRef: &v1.SecretReference{
Name: azureSource.SecretName,
Namespace: defaultSecretNamespace,
},
What happens if you run the new translation library against an older driver? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, msau42, rfranzke 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 is a little refactor in azure file csi driver, let's only support new driver. Since it's still alpha, it's ok to be not backward compatible. |
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.
/lgtm
/retest |
…0162-upstream-release-1.17 Automated cherry pick of #90162: Fix flaws in Azure CSI translation
…0162-upstream-release-1.18 Automated cherry pick of #90162: Fix flaws in Azure CSI translation
What type of PR is this?
/kind bug
What this PR does / why we need it:
The Azure File CSI translation was not setting the
DriverName
field, eventually causing the attachdetach-controller to fail when CSI migration is enabled:I implemented some unit tests for Azure along the way.
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
Part of kubernetes/enhancements#1490