Skip to content

CSI pod information in NodePublish#67945

Merged
k8s-github-robot merged 5 commits intokubernetes:masterfrom
jsafrane:csi-workload-csidriver3-saad
Sep 6, 2018
Merged

CSI pod information in NodePublish#67945
k8s-github-robot merged 5 commits intokubernetes:masterfrom
jsafrane:csi-workload-csidriver3-saad

Conversation

@jsafrane
Copy link
Copy Markdown
Member

What this PR does / why we need it:
This is implementation of kubernetes/community#2439. It brings CSI closer to Flex volume features, CSI driver can (optionally) get name/namespace/UID/ServiceAccount of the pod that requires the CSI volume mounted. This allows CSI drivers to either do AAA before the volume is mounted or tailor content of volume to the pod.

Work in progress:

Related to #64984 #66362 (fixes only part of these issues)

/sig storage

cc: @saad-ali @vladimirvivien @verult @msau42 @gnufied

Release note:

CSI NodePublish call can optionally contain information about the pod that requested the CSI volume.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/kubelet sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Aug 28, 2018
@k8s-ci-robot k8s-ci-robot requested review from davidz627 and enj August 28, 2018 12:49
@jsafrane jsafrane added this to the v1.12 milestone Aug 28, 2018
@jsafrane jsafrane force-pushed the csi-workload-csidriver3-saad branch from 3803f67 to 94aa1e9 Compare August 28, 2018 15:52
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 29, 2018
@saad-ali
Copy link
Copy Markdown
Member

saad-ali commented Sep 1, 2018

@gnufied @jsafrane @childsb

#67803 has merged. Please rebase.

That said, there is a follow up PR #68159 that changes the type from a boolean to a string (See https://github.com/kubernetes/kubernetes/pull/68159/files#diff-21e8dd44d445a0a3b53a642b630fa280R80). Please also rebase this PR off that.

@gnufied gnufied force-pushed the csi-workload-csidriver3-saad branch from 94aa1e9 to 794ac4f Compare September 4, 2018 20:04
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Sep 4, 2018
@gnufied gnufied force-pushed the csi-workload-csidriver3-saad branch from 794ac4f to 102f357 Compare September 4, 2018 20:23
@gnufied
Copy link
Copy Markdown
Member

gnufied commented Sep 4, 2018

@saad-ali I have rebased this against master. PTAL.

@gnufied gnufied force-pushed the csi-workload-csidriver3-saad branch from 102f357 to 1eff25e Compare September 4, 2018 20:52
@saad-ali saad-ali changed the title WIP: CSI pod information in NodePublish CSI pod information in NodePublish Sep 4, 2018
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 4, 2018
Copy link
Copy Markdown
Member

@saad-ali saad-ali left a comment

Choose a reason for hiding this comment

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

LGTM -- one thing -- please rebase this PR on top of #68159

68159 changes the API field used by 67945 from a boolean to a string

@saad-ali
Copy link
Copy Markdown
Member

saad-ali commented Sep 4, 2018

/assign @liggitt for the small auth change

@kfox1111
Copy link
Copy Markdown

kfox1111 commented Sep 5, 2018

lgtm too.

@liggitt
Copy link
Copy Markdown
Member

liggitt commented Sep 5, 2018

/approve
(only reviewed the policy change, remaining packages were already approved)

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 5, 2018
@childsb
Copy link
Copy Markdown
Contributor

childsb commented Sep 5, 2018

re-adding
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 5, 2018
@gnufied gnufied force-pushed the csi-workload-csidriver3-saad branch from 85778fd to a517197 Compare September 5, 2018 15:04
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 5, 2018
@gnufied
Copy link
Copy Markdown
Member

gnufied commented Sep 5, 2018

/test pull-kubernetes-e2e-kops-aws

@childsb
Copy link
Copy Markdown
Contributor

childsb commented Sep 5, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 5, 2018
@gnufied
Copy link
Copy Markdown
Member

gnufied commented Sep 5, 2018

/test pull-kubernetes-kubemark-e2e-gce-big
/test pull-kubernetes-e2e-gce

@childsb
Copy link
Copy Markdown
Contributor

childsb commented Sep 5, 2018

/milestone v1.12

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 5, 2018
@gnufied gnufied force-pushed the csi-workload-csidriver3-saad branch from a517197 to f2bc681 Compare September 6, 2018 01:19
@k8s-ci-robot k8s-ci-robot removed 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. labels Sep 6, 2018
Some refactoring of CSI tests was necessary.
@gnufied gnufied force-pushed the csi-workload-csidriver3-saad branch from f2bc681 to 32ae639 Compare September 6, 2018 01:20
@saad-ali
Copy link
Copy Markdown
Member

saad-ali commented Sep 6, 2018

LGTM'ing rebase

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 6, 2018
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: childsb, jsafrane, liggitt, saad-ali

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-github-robot
Copy link
Copy Markdown

Automatic merge from submit-queue (batch tested with PRs 68171, 67945, 68233). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

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. area/kubelet 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. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/testing Categorizes an issue or PR as relevant to SIG Testing. 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