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
removed NodeInfo #1020
base: main
Are you sure you want to change the base?
removed NodeInfo #1020
Conversation
mslacken
commented
Dec 15, 2023
•
edited by anderbubble
edited by anderbubble
- removed NodeInfo and using NodeConf instead
- wwctl comands without NodeInfo
- api changes for use without NodeInfo
- fixed tests, mostly will use testenv now
- Closes Merge NodeConf and NodeInfo #916
@anderbubble Hoho,, that was my present, merge the grub changes, so that I will a present |
c343a6e
to
e736cb2
Compare
542b32a
to
f07b774
Compare
close #917 |
f07b774
to
2bfae02
Compare
@mslacken I'd like to start helping to get this merged. I tried to do the rebase myself, but I think you'll be more readably able to resolve the conflicts in |
This is a significant change in the undelying data model! nodeDb, err := node.New() will result in a structure which contains the on disk values. Only nodeDb.FindAllNodes() or nodeDb.GetNode(id) will give the nodes with its merged in profiles. Signed-off-by: Christian Goll <cgoll@suse.com>
mostly remove Get and calls for the id Signed-off-by: Christian Goll <cgoll@suse.com>
Signed-off-by: Christian Goll <cgoll@suse.com>
Signed-off-by: Christian Goll <cgoll@suse.com>
introduced wwbool and don't export Nodes and NodeConfs. This requires new explict Yaml (un)marshaling as the standard marshaller won't touch these fields Signed-off-by: Christian Goll <cgoll@suse.com>
this types like WWbool are needed so that they can have their own command line parses which allows a UNDEF for e.g. bool or ints. Signed-off-by: Christian Goll <cgoll@suse.com>
Signed-off-by: Christian Goll <cgoll@suse.com>
Signed-off-by: Christian Goll <cgoll@suse.com>
changes can now not be done directly but must go to SetNode or SetProfile. Although its also now possible to access the field direclty with GetNodePtr Signed-off-by: Christian Goll <cgoll@suse.com>
Signed-off-by: Christian Goll <cgoll@suse.com>
2bfae02
to
9e74a64
Compare
NodeProfiles map[string]*ProfileConf | ||
Nodes map[string]*NodeConf | ||
nodeProfiles map[string]*ProfileConf | ||
nodes map[string]*NodeConf |
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.
This needs to be consolidated or otherwise updated to not have both exported and non-exported names the same. (I think we can just do everything with the exported names and remove the non-exported, though callers will need to be updated.)
if remoteNode.Kernel.Override != "" { | ||
stage_file = kernel.KernelImage(remoteNode.Kernel.Override) | ||
} else if remoteNode.ContainerName != "" { | ||
stage_file = container.KernelFind(remoteNode.ContainerName) |
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.
looks like you need to rebase this branch, the function could not be found during make.
) | ||
|
||
type NodeConfDel struct { | ||
TagsDel []string `lopt:"tagdel" comment:"add tags"` |
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.
the comment should be delete tags