[web/task split] add topology constraints for each deployment #1234
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Fixes a portion of #1182.
Add the ability for users to add topology spread constraints across the web and task deployments or set a specific one for the whole deployment
ISSUE TYPE
TESTING
Expected results will be similar in how the previous iterations of adding these types of features go in that there is the default
topology_spread_constraints
key which will apply to the whole deployment and then can be overwritten byweb_topology_spread_constraints
ortask_topology_spread_constraints
for their respective deploymentstopology_spread_constraints
for the whole deploymentCRD Change
result is toplogySpreadConstraints is applied to both deployments and set the same
web_topology_spread_constraints
to change the web deployment but leave the task deployment the same as above in tc1CRD Change
result was awx-web deployment changed but task stayed the same
task_topology_spread_constraints
to change the task deployment while leaving the web deployment constraint in place (aka same as tc2)CRD Change
result is the task deployment's previous spread constraint set in tc1 is overwritten with the new constraint and web remains the same
CRD Change
remove all previous topology_spread_constraints
result is default behavior