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