Add listQuery to ListInstances
[ZITADOPER-1]
This commit is contained in:
@@ -42,6 +42,7 @@ import (
|
||||
"github.com/zitadel/zitadel-go/v2/pkg/client/system"
|
||||
adm "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/admin"
|
||||
authn "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/authn"
|
||||
object "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/object"
|
||||
pb "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/system"
|
||||
appsv1 "k8s.io/api/apps/v1"
|
||||
batchv1 "k8s.io/api/batch/v1"
|
||||
@@ -378,7 +379,13 @@ func (r *ZitadelClusterReconciler) reconcileDefaultInstance(ctx context.Context,
|
||||
|
||||
// Delete all Instances that isn't the default
|
||||
{
|
||||
resp, err := ztdClient.ListInstances(ctx, &pb.ListInstancesRequest{})
|
||||
resp, err := ztdClient.ListInstances(ctx, &pb.ListInstancesRequest{
|
||||
Query: &object.ListQuery{
|
||||
Offset: uint64(0),
|
||||
Limit: uint32(100),
|
||||
Asc: true,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return ctrl.Result{}, fmt.Errorf("Error listing instances: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user