58 Commits

Author SHA1 Message Date
xing-yang
3ed4ebd3d8 Use client v7 2024-01-30 17:40:58 -05:00
Raunak Pradip Shah
060ee23d6d Delete individual volume snapshots as part of the group snapshot delete API and prevent users from deleting individual volume snapshots if it is part of an existing group snapshot
Also revert commit bb29899ca3.
2023-11-17 14:24:55 +05:30
xing-yang
bb29899ca3 Disable VolumeGroupSnapshot feature flag
Disable the flag for now. Will enable it when
the feature is fully implemented.
2023-09-10 20:17:40 +00:00
carlory
c494031e55 check if the csi driver is supported the volume group snapshot cap when the --enable-volume-group-snapshots arg is true 2023-07-26 10:09:20 +08:00
Raunak Pradip Shah
9e2d4f6264 Add groupSnapshotNamePrefix and groupSnapshotNameUUIDLength CLI options 2023-05-03 21:21:32 +05:30
Raunak Pradip Shah
871312988b Added create group volume snapshot functionality 2023-05-03 21:21:32 +05:30
Raunak Pradip Shah
299862c783 Add csi snapshotter functionality for volume group snapshots 2023-05-03 21:21:32 +05:30
Raunak Pradip Shah
5b3a927d2a Vendored deps 2022-03-24 21:40:29 +05:30
Raunak Pradip Shah
d300796fab - Update snapshotter module to v6
- Update snapshotter client module to v5
- Update go version in client modules to v1.17
2022-03-23 08:59:19 +05:30
Ubuntu
21fc337b87 feat: Implement distributed snapshotting 2021-12-24 20:03:31 +00:00
Lintong Jiang
9d1492a945 Fixed the bug introduced by PR 621 and exposed the kube-api-qps cmd option properly 2021-12-11 17:01:49 -08:00
Lintong Jiang
f3136decb3 Make the QPS and Burst of kube client config to be configurable in both csi-snapshotter and snapshot-controller 2021-12-07 10:28:36 -08:00
shahra
db972e7c50 Add command line arguments to configure leader election options 2021-06-25 11:38:58 +05:30
Humble Chirammal
206fecb9f1 Allow tuning Common-controller Ratelimiter with retryIntervalStart & retryIntervalMax
This patch adds two new parameters `retryIntervalStart & retryIntervalMax`
which can be configured to adjust the ratelimiters of snapshotqueue and contentqueue
in the controller.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>

```release-note
 `retry-interval-start` and `retry-interval-max` arguments are added to common-controller
  which controls retry interval of failed volume snapshot creation and deletion.
  These values set the ratelimiter for snapshot and content queues.
```

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2021-06-11 23:29:17 +05:30
Humble Chirammal
9f7f993c50 Add ability to customize VolumeSnapshotContent workqueue
Two new timeout values ( retryIntervalStart & retryIntervalMax )
have been added to set the ratelimiter for volumesnapshotcontent queue.

Fix# https://github.com/kubernetes-csi/external-snapshotter/issues/463

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>

```release-note
 `retry-interval-start` and `retry-interval-max` arguments are added to csi-snapshotter sidecar which controls retry interval of failed volume snapshot creation and deletion. These values set the ratelimiter for volumesnapshotcontent queue.
```

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2021-06-10 19:12:12 +05:30
Grant Griffiths
f949f2be3b Fix metrics server to use httpEndpoint when provided
Signed-off-by: Grant Griffiths <ggriffiths@purestorage.com>
2021-04-15 07:27:05 -07:00
xing-yang
730e6f6458 Update to client/v4 2020-12-14 18:50:10 +00:00
xing-yang
5069c99ec3 Update controller based on snapshot v1 apis 2020-12-11 21:13:47 +00:00
Grant Griffiths
997795d872 Increase resync-period default to 15 minutes
Signed-off-by: Grant Griffiths <grant@portworx.com>
2020-12-09 23:11:12 -08:00
xing-yang
6761111167 Bump csi-lib-utils to v0.9.0 2020-12-05 02:39:03 +00:00
Chris Henzie
f705b23bbd Pass snapshot metadata to CSI driver 2020-10-09 12:53:32 -07:00
xing-yang
a2ac03c740 Update to v3 2020-09-08 21:25:47 +00:00
Kubernetes Prow Robot
a69711cec2 Merge pull request #307 from Kartik494/updategomod
Added go modules for Apis and Client
2020-08-19 21:45:22 -07:00
shahra
17e79ac238 Use separate client for leader election 2020-07-29 14:01:11 -07:00
kartik494
ae215218d1 Added go modules for Apis and Client 2020-07-29 16:52:45 +05:30
Christian Huffman
ffaeac1515 Move to klogv2 2020-07-27 14:39:56 -04:00
ialidzhikov
d1330389c5 Nit: fix typos
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-04-26 23:43:15 +03:00
Christian Huffman
12f4e1c114 Makes the number of worker threads configurable. 2020-03-31 13:01:33 -04:00
Alex Szakaly
fb6225dc41 fix: go module requirements for semantic versioning
This commit also adds the compatibility with dep (Go dependency
management tool) via symlink creation (same method applied in
kubernetes-csi/csi-test)

TODO: fix hack/update-generated-code.sh

Fixes issue #239.

Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
2020-01-22 09:50:01 +01:00
saad-ali
d705c40e17 Fix typo in readme 2020-01-02 11:25:49 -08:00
saad-ali
3173a1fb35 Introduce metrics library 2019-12-30 16:37:11 -08:00
xing-yang
9000e9c846 Address review comments 2019-11-08 02:46:17 +00:00
xing-yang
6308420635 Split snapshot controller using beta APIs 2019-11-07 16:49:41 +00:00
Xing Yang
0c1faac468 Update VolumeSnapshot CRD version to v1beta
preserveUnknownField set to false, comments updates, adding pull request annotation
more comment updates
VolumeSnapshot comments
rename to VolumeSnapshotClassName
adding license
2019-10-24 16:33:52 -07:00
Grant Griffiths
1bb6eb6f74 Exit on CSI gRPC conn loss
Signed-off-by: Grant Griffiths <grant@portworx.com>
2019-09-17 15:21:37 -07:00
Kubernetes Prow Robot
d69cf48654 Merge pull request #129 from zhucan/bugfix-128
Leader election lock name should include driver name
2019-07-11 17:15:05 -07:00
Madhu Rajanna
cd5125fd66 log csiTimeout will while starting snapshotter
connectionTimeout is deprecated in favor of
csiTimeout, logging connectionTimeout wont
look good as this doesnot have any effect
in NewSnapshotter.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-07-09 14:41:34 +05:30
zhucan
e2506521ac failed unit test 2019-06-19 15:08:50 +08:00
zhucan
94238a86d9 Leader election lock name should include driver name 2019-06-19 15:00:29 +08:00
Xing Yang
e49856eb41 Add groupName in doc.go when generating files 2019-05-09 13:40:40 -07:00
Xing Yang
7dec039b68 Fix the default timeout in help msg 2019-04-27 08:43:16 -07:00
Andrew Sy Kim
35d8184c7b set default timeout to 1m
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-04-16 15:15:46 -04:00
Andrew Kim
6504b48a2e add csi timeout flag for request timeouts to CSI driver 2019-04-15 18:08:15 -04:00
Andrew Sy Kim
8f69d74514 add leader election support for external snapshotter
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-04-03 15:51:24 -04:00
Andrew Kim
06a4bf2a05 refactor external snapshotter to use csi-lib-utils/rpc 2019-04-01 14:40:11 -04:00
Humble Chirammal
eb2dd437c1 Migrate to k8s.io/klog from glog.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-03-26 19:10:24 +05:30
Jan Safranek
bf768d8cb4 Deprecate --snapshotter option
There is no reason why driver name should not be used as snapshotter name.
It only confuses people and adds unnecessary redundancy.
2019-03-13 17:58:13 +01:00
Andrew Kim
0da03b3210 external-snapshotter should use CSI connection lib 2019-02-13 22:42:05 -05:00
xushiwei
85504e1220 add pvcLister to snapshot controller
This reverts commit 96b6f495d3.
2018-11-30 17:19:47 +08:00
Xing Yang
96b6f495d3 Revert "add pvcLister to snapshot controller" 2018-11-27 19:38:09 -05:00