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

vSphere CSI Driver 2.0 #151

Merged
merged 246 commits into from
Apr 7, 2020
Merged

vSphere CSI Driver 2.0 #151

merged 246 commits into from
Apr 7, 2020

Conversation

divyenpatel
Copy link
Member

@divyenpatel divyenpatel commented Apr 6, 2020

What this PR does / why we need it:

Which issue this PR fixes
fixes #136
fixes #103
fixes #93
fixes #138
fixes #100
fixes #55

Special notes for your reviewer:

This is a huge Pull Request with 243 commits, authored by many developers (@divyenpatel, @BaluDontu, @RaunakShah, @chethanv28, @yuyiying, @lipingxue, @shalini-b, @shreesha21, @xing-yang, @SandeepPissay, @subramanian-neelakantan @sashrith and @ankitvaidya)

Most of the commits were already reviewed internally by VMware Engineers.

Please focus on reviewing following additional commits

  • d7ba641 - Removed - unnecessary use of fmt.Sprintf (S1039)
  • e3276ea - should omit comparison to bool constant
  • 8942cc1 - Fixed – unused value of variables, unused variables and unused functions
  • e714e0f - Fixed: should use make(map[string]string) instead (S101)
  • 2f3e6e0 - staticcheck fixes
  • ab5405e - fixing ReloadConfiguration for staticcheck verification
  • 9cdc1da - fixed check-vet failures
  • 0793d67 - fixed markdown linter check failures
  • 3babeb0 - setting updateStrategy to RollingUpdate for vsphere-csi-controller deployment
  • 00e1935 - fixed integration-unit-test
  • fc1ed68 - changing maintainers of driver docker images

Release note:

vSphere CSI Driver 2.0 

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: divyenpatel

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 6, 2020
@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Apr 6, 2020
Makefile Outdated Show resolved Hide resolved
hack/check-lint.sh Outdated Show resolved Hide resolved
hack/verify-golint.sh Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Apr 7, 2020
@ankitvaidya
Copy link
Contributor

I signed it

@sashrith
Copy link
Contributor

sashrith commented Apr 7, 2020

Signed it

@divyenpatel
Copy link
Member Author

/retest

@divyenpatel
Copy link
Member Author

divyenpatel commented Apr 7, 2020

/check-cla

1 similar comment
@divyenpatel
Copy link
Member Author

/check-cla

@r-shreesha
Copy link
Contributor

I signed it

1 similar comment
@r-shreesha
Copy link
Contributor

I signed it

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Apr 7, 2020
@xing-yang
Copy link
Contributor

Just 1 nit. Looks good other than that.

@divyenpatel divyenpatel added this to the v2.0.0 milestone Apr 7, 2020
@xing-yang
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 Apr 7, 2020
@k8s-ci-robot k8s-ci-robot merged commit 51199e1 into kubernetes-sigs:master Apr 7, 2020
@SandeepPissay
Copy link
Contributor

I glanced through the code changes in all the commits mentioned in the PR description and I did not find any obvious issues. Given that most of the code changes are internally reviewed this PR is good to merge.

@SandeepPissay
Copy link
Contributor

/lgtm

- name: registration-dir
mountPath: /registration
- name: vsphere-csi-node
image: vmware/vsphere-csi:<vsphere_csi_ver>
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the plan with <vsphere_csi_ver>? This should be addressed in upcoming PR, cannot be used otherwise.

Copy link
Member Author

Choose a reason for hiding this comment

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

@alex1989hu driver images in the YAML will be replaced with following when release v.2.0.0 is cut.

gcr.io/cloud-provider-vsphere/csi/release/driver:v2.0.0
gcr.io/cloud-provider-vsphere/csi/release/syncer:v2.0.0

Copy link

@nickvth nickvth Apr 8, 2020

Choose a reason for hiding this comment

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

@divyenpatel when are the container images available?

Choose a reason for hiding this comment

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

I also hope to learn that please. I urgently need a working image.

Copy link

Choose a reason for hiding this comment

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

working images, but not final release:

gcr.io/cloud-provider-vsphere/csi/ci/driver:v1.0.2-265-gbaaccdf
gcr.io/cloud-provider-vsphere/csi/ci/syncer:v1.0.2-265-gbaaccdf

Copy link

@shawnho1018 shawnho1018 Apr 12, 2020

Choose a reason for hiding this comment

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

I also update this information in my own issue: #154 . I tested the latest image and it worked on kubernetes 1.16.6 with vSphere 7.0

env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- mountPath: /csi
name: socket-dir
- name: vsphere-csi-controller
image: gcr.io/cloud-provider-vsphere/csi/release/driver:v1.0.2
image: vmware/vsphere-csi:<vsphere_csi_ver>
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the plan with <vsphere_csi_ver>? This should be addressed in upcoming PR, cannot be used otherwise.

- name: registration-dir
mountPath: /registration
- name: vsphere-csi-node
image: vmware/vsphere-csi:<vsphere_csi_ver>
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the plan with <vsphere_csi_ver>? This should be addressed in upcoming PR, cannot be used otherwise.

- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: vsphere-csi-controller
image: vmware/vsphere-csi:<vsphere_csi_ver>
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the plan with <vsphere_csi_ver>? This should be addressed in upcoming PR, cannot be used otherwise.

- mountPath: /csi
name: socket-dir
- name: vsphere-csi-controller
image: vmware/vsphere-csi:<vsphere_csi_ver>
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the plan with <vsphere_csi_ver>? This should be addressed in upcoming PR, cannot be used otherwise.

@@ -1,111 +1,98 @@
module sigs.k8s.io/vsphere-csi-driver
Copy link
Contributor

Choose a reason for hiding this comment

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

I made a PR to fix v2: #156

@nickvth
Copy link

nickvth commented Apr 10, 2020

Please add online resizing

33s         Warning   ExternalExpanding        persistentvolumeclaim/grafana   Ignoring the PVC: didn't find a plugin capable of expanding the volume; waiting for an external controller to process this PVC.
9s          Normal    Resizing                 persistentvolumeclaim/grafana   External resizer is resizing volume pvc-c01f75b5-28ff-4f25-8979-b94416f540a2
20s         Warning   VolumeResizeFailed       persistentvolumeclaim/grafana   resize volume pvc-c01f75b5-28ff-4f25-8979-b94416f540a2 failed: rpc error: code = FailedPrecondition desc = failed to expand volume: "713dd25b-56cb-4092-a593-8acd93651b99" to size: 12288. Volume is attached to node "42128e4f-aa14-bedc-a7a5-69a28e4c8d1a". Only offline volume expansion is supported

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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet