Skip to content

Commit d00b18c

Browse files
authored
Add new CruiseControlTaskOperation to represent Status Cruise Control Operation (banzaicloud#975)
When the request on /state endpoint of CC takes longer than webserver.request.maxBlockTimeMs, then CC will convert the request into an async task and will respond with the taskID instead of the result. The Koperator should handle this case by waiting for CC to complete the task.
1 parent 3576d6a commit d00b18c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/v1alpha1/common_types.go

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ const (
4646
OperationRemoveBroker CruiseControlTaskOperation = "remove_broker"
4747
// OperationRebalance means a Cruise Control rebalance operation
4848
OperationRebalance CruiseControlTaskOperation = "rebalance"
49+
// OperationStatus means a Cruise Control status operation
50+
OperationStatus CruiseControlTaskOperation = "status"
4951
// KafkaAccessTypeRead states that a user wants consume access to a topic
5052
KafkaAccessTypeRead KafkaAccessType = "read"
5153
// KafkaAccessTypeWrite states that a user wants produce access to a topic

0 commit comments

Comments
 (0)