Skip to content

Commit

Permalink
Removed linux only directive
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnedo committed Oct 29, 2024
1 parent e9ad6e3 commit d89b8f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
mod skate;
mod skatelet;
#[cfg(target_os = "linux")]
mod apply;
mod refresh;
mod ssh;
Expand Down
8 changes: 8 additions & 0 deletions src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,14 @@ impl DefaultScheduler {

fn plan_deployment_rolling_update(state: &ClusterState, d: &Deployment, _: RollingUpdateDeployment) -> Result<ApplyPlan, Box<dyn Error>> {
let actions = Self::plan_deployment_generic(state, d)?;

// max unavailable = 25% == 75% must be available
// max surge = 25% == max 125% number of pods
// deploy
// deploy to max surge
// delete to max unavail
// deploy to max surge
// etc

// TODO - respect max surge and max unavailable
// will require parallelism.
Expand Down

0 comments on commit d89b8f3

Please sign in to comment.