Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aruniiird The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@malayparida2000 , Code referred: https://github.com/red-hat-storage/ocs-operator/blob/main/controllers/storagecluster/cephcluster.go#L945-L976 Can you please check? Once confirmed, I can add / extend the changes to the above component as well? If current code is required and intentional we can ignore this comment. |
|
/hold the All key should only be utilised & always has been utlised by rook only. We do not apply the tolerations or affinity under all to other components |
Problem: The function 'mergePlacements()' used to replace the current/default placement with the user provided placement spec. This replaced any default needed placement->tolerations which were added by the operator by default. Solution: We need to merge the new/custom placements additively. This way, any required placement values, provided by the operator, won't be replaced and any new/additional values, provided by the user, will be appended to the existing ones. Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
b9f8afe to
faf6192
Compare
|
@malayparida2000 , yes I agree to your above point, but we still have a bug. When a custom placement is added (to the StorageCluster spec), our current behavior is to replace the existing (default + required + operator provided placement tolerations) with the new-custom-provided one. I've removed the previous code to add Please take a look. |
Problem:
The function 'mergePlacements()' used to replace the current/default placement with the user provided placement spec. This replaced any default needed placement->tolerations which were added by the operator by default.
Solution:
We need to merge the new/custom placements additively. This way, any required placement values, provided by the operator, won't be replaced and any new/additional values, provided by the user, will be appended to the existing ones.
For more details: https://issues.redhat.com/browse/DFBUGS-5253