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

Enable storage class support in Azure File volume #42170

Merged
merged 1 commit into from
Mar 25, 2017

Conversation

rootfs
Copy link
Contributor

@rootfs rootfs commented Feb 27, 2017

What this PR does / why we need it:
Support StorageClass in Azure file volume

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

Support StorageClass in Azure file volume

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 27, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Feb 27, 2017
@rootfs rootfs force-pushed the azure-file-prv branch 2 times, most recently from 09b06c6 to 8d2f393 Compare February 27, 2017 18:05
@rootfs
Copy link
Contributor Author

rootfs commented Feb 27, 2017

@colemickens
Copy link
Contributor

Why do you add the secret here? You didn't do this for the AzureDisk dynamic provisioner did you?

@rootfs
Copy link
Contributor Author

rootfs commented Feb 27, 2017

@colemickens right, for azure disk, no secret is needed in Azure API.

Azure file is different, it needs a username (i.e. storageaccountname in secret) and password (i.e. storageaccountkey in secret) to mount a CIFS share. When we create an Azure file share for a PVC, we have to ensure the secret is in the PVC's namespace so when Pod picks the PVC, the secret used by the PV exists.

@rootfs
Copy link
Contributor Author

rootfs commented Feb 28, 2017

@kubernetes/sig-storage-misc

@colemickens
Copy link
Contributor

I think I understand: AzureDisk needs the user/pass for Storage too, but those values are used by k-c-m which has access to the Azure cloudprovider auth context. On the other hand, for AzureFiles, the user/pass is used directly by mount under kubelet where you might not have access to the cloudprovider.

Is that the gist?

@rootfs
Copy link
Contributor Author

rootfs commented Feb 28, 2017

@colemickens yes, that's the idea.

@colemickens
Copy link
Contributor

Looks good to me. Thanks @rootfs.

@saad-ali saad-ali assigned saad-ali and unassigned madhusudancs Feb 28, 2017
@rootfs
Copy link
Contributor Author

rootfs commented Mar 8, 2017

@saad-ali PTAL, thanks

@rootfs
Copy link
Contributor Author

rootfs commented Mar 8, 2017

/assign @colemickens

@colemickens
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 8, 2017
@rootfs
Copy link
Contributor Author

rootfs commented Mar 8, 2017

@k8s-bot cvm gce e2e test this

@brendandburns
Copy link
Contributor

/approve

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

The following people have approved this PR: brendandburns, colemickens, rootfs

Needs approval from an approver in each of these OWNERS Files:

We suggest the following people:
cc
You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 9, 2017
@rootfs
Copy link
Contributor Author

rootfs commented Mar 13, 2017

@k8s-bot unit test this

@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 43642, 43170, 41813, 42170, 41581)

@k8s-github-robot k8s-github-robot merged commit 3fcb7cb into kubernetes:master Mar 25, 2017
@k8s-github-robot
Copy link

@rootfs PR needs rebase

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants