Skip to content

Conversation

@ajanikow
Copy link
Collaborator

…cheduled label to pods

@ajanikow ajanikow merged commit c586d09 into master Dec 10, 2021
@ajanikow ajanikow deleted the feature/add_scheduled_label branch December 10, 2021 10:52
}

if k8sutil.IsPodScheduled(pod) {
if _, ok := pod.Labels[k8sutil.LabelKeyArangoScheduled]; k8sutil.IsPodScheduled(pod) && !ok {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we check k8sutil.IsPodScheduled(pod) twice? in line 189 it was checked

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix it - small issue which just use cycles

return t.ID == m.ID
}

func (t *TopologyStatus) IsTopologyEvenlyDistributed(group ServerGroup) bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to have a description here. What function should return when t.Zones is empty. Currently,
the function IsTopologyEvenlyDistributed returns false (not distributed evenly) when t.Zones are empty. Is it intentional? The description of the function should explain it because I don't know the intensions

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And t.Zones cant be with size 0 - it is checked in code. If it is, then false is expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants