Mark pods with restartable init containers as UnschedulableAndUnresolvable

This marks the pods with restartable init containers as
`UnschedulableAndUnresolvable` if the feature gate is disabled to avoid
the inconsistency in resource calculation between the scheduler and the
older kubelet.
This commit is contained in:
Gunju Kim
2023-05-16 23:41:53 +09:00
parent 0a98707912
commit 7286d122fb
4 changed files with 101 additions and 0 deletions

View File

@@ -29,4 +29,5 @@ type Features struct {
EnablePodSchedulingReadiness bool
EnablePodDisruptionConditions bool
EnableInPlacePodVerticalScaling bool
EnableSidecarContainers bool
}