Skip to content

Commit

Permalink
fix(cluster): don't taint servers that have cloud_destroy_ts
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Jun 1, 2024
1 parent 05f044e commit be1cafa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions svc/pkg/cluster/worker/src/workers/server_taint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ async fn worker(ctx: &OperationContext<cluster::msg::server_taint::Message>) ->
WHERE
s.datacenter_id = d.datacenter_id
AND s.taint_ts IS NULL
AND s.cloud_destroy_ts IS NULL
AND ($2 IS NULL OR s.server_id = ANY($2))
AND ($3 IS NULL OR d.cluster_id = ANY($3))
AND ($4 IS NULL OR s.datacenter_id = ANY($4))
Expand Down

0 comments on commit be1cafa

Please sign in to comment.