What happened?
There has been a change in the interpretation of the PodGang API.
type PodGangSpec struct {
// PodGroups is a list of member pod groups in the PodGang.
PodGroups []PodGroup `json:"podgroups"`
// TopologyConstraint defines topology packing constraints for entire pod gang.
// This is the top level topology constraint that applies to all PodGroups in the PodGang.
// Updated by operator on each reconciliation when PodCliqueSet topology constraints change.
// +optional
TopologyConstraint *TopologyConstraint `json:"topologyConstraint,omitempty"`
// TopologyConstraintGroupConfigs defines TopologyConstraints for a strict subset of PodGroups.
// +optional
TopologyConstraintGroupConfigs []TopologyConstraintGroupConfig `json:"topologyConstraintGroupConfigs,omitempty"`
}
For base PodGang, PodGangSpec fields have the following semantics:
PodGroups will hold the topology constraints defined at the PCLQ level.
TopologyConstraint will be the topology constraint defined at the PCS level.
TopologyConstraintGroupConfig.TopologyConstraint will be the topology constraint defined at the PCSG level.
For scaled PodGang, PodGangSpec fields have the following semantics:
PodGroups will hold the topology constraints defined at the PCLQ level.
TopologyConstraint will be the topology constraint defined at the PCSG level.
TopologyConstraintGroupConfig will be empty.
computeExpectedPodGangs does not correctly reflect this behavior and therefore needs to be fixed.
This was missed in #302.
NOTE: Design document will be updated clearly with all of these changes. Currently it is out-of-date. A separate PR will be raised soon to fix the design doc.
What happened?
There has been a change in the interpretation of the
PodGangAPI.For base PodGang,
PodGangSpecfields have the following semantics:PodGroupswill hold the topology constraints defined at the PCLQ level.TopologyConstraintwill be the topology constraint defined at the PCS level.TopologyConstraintGroupConfig.TopologyConstraintwill be the topology constraint defined at the PCSG level.For scaled PodGang,
PodGangSpecfields have the following semantics:PodGroupswill hold the topology constraints defined at the PCLQ level.TopologyConstraintwill be the topology constraint defined at the PCSG level.TopologyConstraintGroupConfigwill be empty.computeExpectedPodGangs does not correctly reflect this behavior and therefore needs to be fixed.
This was missed in #302.