-
Notifications
You must be signed in to change notification settings - Fork 40
Allow multiple nodes have templates (use local storage) #467
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
base: main
Are you sure you want to change the base?
Conversation
TestsPlease note that running unit and e2e tests requires manual approval from a team member. e2e testsWe use labels to control which e2e tests contexts are run:
ℹ️ Ask a team member to add the requested labels if you don't have enough permissions. |
did more intensive testing, not all cases now work, so will be making some changes there. |
fully reworked logic is now pushed, also updated description. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make better use of validation rules instead of the overriding logic or erroring out. Early failure is better UX.
Make sure the examples are still correct.
This feature deserves documentation :)
This is close. I like the overall idea and implementation but it can be simplified. Please avoid just reformatting unrelated files as that makes the PR larger and thus harder to review plus it can mess up rebasing/reverting/... .
cd5776e
to
694b135
Compare
I'm not ok with this. It's a breaking change. Instead, you could add a validation rule that both |
I think this is very close. Please update go.mod so that the test suite can run. I would like @mcbenjemaa or @65278 to give this a look as it's a fairly large change requiring a second pair of eyes. |
|
rebased on main |
Issue #, if available:
fixes #451
Adjusted order of how scheduling happens
If we have usable template, determine how we need to schedule
Target
is provided schedule on that node if template is thereTarget
andallowedNodes
missing assume we want all nodes to use in scheduling (discover all nodes)allowedNodes
schedule only onallowedNodes
allowedNodes
still continue to schedule on nodes where template exists.LocalStorage:
options.Target
as we will use template from same node.Fixed existing tests to reflect multiple scenarios (moving out
templateID
andSourceNode
fromsetupReconcilerTest
createVM
had became too complex (gocyclo) as i've written in code for now it should be function to revisit and get into smaller chunks.