Skip to content

Commit

Permalink
Fix windows fail with InPlacePodVerticalScaling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotiris Salloumis committed Nov 25, 2024
1 parent e4c1f98 commit 67f4e92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kubelet/kuberuntime/kuberuntime_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"fmt"
"os"
"path/filepath"
"runtime"
"sort"
"time"

Expand Down Expand Up @@ -549,6 +550,9 @@ func containerSucceeded(c *v1.Container, podStatus *kubecontainer.PodStatus) boo
}

func IsInPlacePodVerticalScalingAllowed(pod *v1.Pod) bool {
if runtime.GOOS == "windows" {
return false
}
if !utilfeature.DefaultFeatureGate.Enabled(features.InPlacePodVerticalScaling) {
return false
}
Expand Down

0 comments on commit 67f4e92

Please sign in to comment.