Baptiste Girard-Carrabin
72b51c066c
[snapshot-controller] Fix wait for CRDs duration
...
Ensure the function `ensureCustomResourceDefinitionsExist` returns when
the duration specified in `retryCRDIntervalMax` flag is reached.
This works by passing a context to the backoff so that we can
timeout with context.WithTimeout. The new (correct) default duration for
the flag is 30s to give a bit more time when controller and CRD are
created at the same time.
Also limit the amount of resources returned by the list calls to 0 to
speed up the operations because we only care that the CRD exists.
2024-01-10 10:36:55 +01:00
Alex Kalenyuk
895dc73977
Enable prevent-volume-mode-conversion by default following k8s 1.28 release
...
This is beta since 1.27 so we can safely default to true, to get this new validation logic.
https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/3141-prevent-volume-mode-conversion/kep.yaml#L30
Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com >
2023-12-10 14:23:29 +02: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
Raunak Pradip Shah
facefbad6e
add DeleteVolumeGroupSnapshot API to delete group snapshot
2023-11-03 13:14:00 +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
Raunak Pradip Shah
a574b8780c
-Introduce volume group snapshot functionality include initializing queues and caches in snapshotter
...
- Introduce new flag for volume group snapshots and run worker if flag is enabled
- Introduce the main controller for group snapshots in snapshot-controller
2023-05-03 21:21:32 +05:30
Matthew Cary
0cd8f738c7
Parameterize startup CRD wait retries
...
Change-Id: I870a3d294b4d30abea3f6ecad951d68cfd5c9ceb
2022-11-03 18:23:31 -07:00
Kubernetes Prow Robot
9ffdb95103
Merge pull request #690 from humblec/rbac
...
replace serviceAccountName key, rbac and cleanup in the code
2022-04-25 07:39:39 -07:00
Humble Chirammal
f30b14f8fd
make use of short declaration of variables and cleanup code
...
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-04-13 08:35:03 +05:30
Raunak Pradip Shah
5b578e8573
- Introduce new flag to enable feature to prevent unauthorised volume mode conversion
...
- Changes to snapshot controller to read the volume mode from the PV and add it to SourceVolumeMode field in VolumeSnapshotContent
2022-04-07 19:08:18 +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
Grant Griffiths
0476dcedcc
Refactor http server and register leaderelection health check
...
- Needed to start the http server outside of pkg/metric
- We needed this because we want to add other endpoints to the server
Signed-off-by: Grant Griffiths <ggriffiths@purestorage.com >
2021-08-10 11:44:12 -07:00
Fabio Bertinatto
22d4998b4c
Add options to configure leader election in snapshot-controller
2021-08-09 16:01:41 -03:00
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
Mauricio Poppe
77211d3fa3
remove volumesnapshots requests
2021-05-07 23:30:25 +00:00
Mauricio Poppe
bfd88737a0
fix typo in CRD check
2021-04-29 22:30:11 +00:00
Mauricio Poppe
660420bdf4
Make sure the VolumeSnapshots v1 CRDs exist before starting the controller
2021-04-27 16:59:59 +00: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
Grant Griffiths
941821bf99
Add snapshot controller metrics
...
Signed-off-by: Grant Griffiths <grant@portworx.com >
2020-12-02 22:18:18 -08:00
namrata-ibm
315bde3b92
Revert to multiarch distroless base image
2020-10-21 13:08:59 +00:00
namrata-ibm
8cf2d5d246
Workaround for job failure due to update in distroless base image
2020-10-08 09:35:53 +00: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
Patrick Ohly
8e680b17bc
cloud build: use files from csi-release-tools
2020-06-02 20:25:15 +02: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
xing-yang
60c696c7c7
Remove createSnapshotContentRetryCount and createSnapshotContentInterval
...
from command line options
2019-12-18 02:54:15 +00: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