File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1- f536da703bd264523ca32173963972b8c91174f8
1+ 5530b6f935933ca64b83d1498b6fffe3e1143390
Original file line number Diff line number Diff line change @@ -123,9 +123,21 @@ message LockAction {
123123 google.protobuf.Duration duration = 2 ;
124124}
125125
126+ // Moving tablets away.
127+ message DrainAction {
128+ ActionScope scope = 1 ;
129+ }
130+
131+ // Ensuring no new tablets run there.
132+ message CordonAction {
133+ ActionScope scope = 1 ;
134+ }
135+
126136message Action {
127137 oneof action {
128138 LockAction lock_action = 1 ;
139+ DrainAction drain_action = 2 ;
140+ CordonAction cordon_action = 3 ;
129141 }
130142}
131143
@@ -158,6 +170,8 @@ message ActionState {
158170 ACTION_STATUS_PENDING = 1 ;
159171 // Action performed: e.g. lock is taken.
160172 ACTION_STATUS_PERFORMED = 2 ;
173+ // Action is currently in progress
174+ ACTION_STATUS_IN_PROGRESS = 3 ;
161175 }
162176
163177 enum ActionReason {
@@ -184,7 +198,7 @@ message ActionState {
184198 ActionUid action_uid = 2 ;
185199 ActionStatus status = 3 ;
186200 ActionReason reason = 4 ;
187- string reason_details = 6 ;
201+ string details = 6 ;
188202 google.protobuf.Timestamp deadline = 5 ;
189203}
190204
You can’t perform that action at this time.
0 commit comments