mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Add TODO comment.
This commit is contained in:
parent
2bc5414de6
commit
17ddb19ada
@ -462,6 +462,10 @@ func (dc *DisruptionController) trySync(pdb *policy.PodDisruptionBudget) error {
|
|||||||
|
|
||||||
func (dc *DisruptionController) getExpectedPodCount(pdb *policy.PodDisruptionBudget, pods []*api.Pod) (expectedCount, desiredHealthy int32, err error) {
|
func (dc *DisruptionController) getExpectedPodCount(pdb *policy.PodDisruptionBudget, pods []*api.Pod) (expectedCount, desiredHealthy int32, err error) {
|
||||||
err = nil
|
err = nil
|
||||||
|
// TODO(davidopp): consider making the way expectedCount and rules about
|
||||||
|
// permitted controller configurations (specifically, considering it an error
|
||||||
|
// if a pod covered by a PDB has 0 controllers or > 1 controller) should be
|
||||||
|
// handled the same way for integer and percentage minAvailable
|
||||||
if pdb.Spec.MinAvailable.Type == intstr.Int {
|
if pdb.Spec.MinAvailable.Type == intstr.Int {
|
||||||
desiredHealthy = pdb.Spec.MinAvailable.IntVal
|
desiredHealthy = pdb.Spec.MinAvailable.IntVal
|
||||||
expectedCount = int32(len(pods))
|
expectedCount = int32(len(pods))
|
||||||
|
Loading…
Reference in New Issue
Block a user