Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vmclass): add events about available nodes and sizing policies changed #606

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eofff
Copy link
Contributor

@eofff eofff commented Dec 24, 2024

Description

Using new events api.
Add event when list of available nodes changed.
Add event when sizing policies changed.

Why do we need it, and what problem does it solve?

What is the expected result?

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

@eofff eofff requested review from diafour and Isteb4k December 24, 2024 14:32
@eofff eofff force-pushed the feat/vmclass/add-events-about-node-and-policy-changes branch from 40ac6c9 to 7dd0311 Compare December 24, 2024 14:32
@eofff eofff changed the title feat(vmclass): Add events about available nodes and sizing policies changed feat(vmclass): add events about available nodes and sizing policies changed Dec 25, 2024
Signed-off-by: Valeriy Khorunzhin <[email protected]>
@eofff eofff force-pushed the feat/vmclass/add-events-about-node-and-policy-changes branch from 7dd0311 to 2599df7 Compare December 25, 2024 14:40
@@ -175,3 +202,30 @@ func (h *DiscoveryHandler) maxAllocatableResources(nodes []corev1.Node) corev1.R
}
return resourceList
}

func nodeNamesDiff(prev, current []string) (added, removed []string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Cover this fn with unit test please

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.

2 participants