Skip to content

Commit ff38128

Browse files
vporyadkegithub-actions[bot]
authored andcommitted
drain api as part of cms api (#15474)
1 parent ed5027c commit ff38128

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/last_commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f536da703bd264523ca32173963972b8c91174f8
1+
5530b6f935933ca64b83d1498b6fffe3e1143390

src/api/protos/draft/ydb_maintenance.proto

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
126136
message 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

0 commit comments

Comments
 (0)