We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84b3b39 + 8531b4e commit 6907e94Copy full SHA for 6907e94
cmd/snapshot-controller/main.go
@@ -83,9 +83,9 @@ var version = "unknown"
83
func ensureCustomResourceDefinitionsExist(client *clientset.Clientset, enableVolumeGroupSnapshots bool) error {
84
condition := func(ctx context.Context) (bool, error) {
85
var err error
86
- // List calls should return faster with a limit of 0.
+ // List calls should return faster with a limit of 1.
87
// We do not care about what is returned and just want to make sure the CRDs exist.
88
- listOptions := metav1.ListOptions{Limit: 0}
+ listOptions := metav1.ListOptions{Limit: 1}
89
90
// scoping to an empty namespace makes `List` work across all namespaces
91
_, err = client.SnapshotV1().VolumeSnapshots("").List(ctx, listOptions)
0 commit comments