Removed check for "discoverable" profiles during wwctl upgrade nodes
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -46,6 +46,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Remove redundant `wwctl genconfig completions` command. #1716
|
||||
- Remove syncuser warning messages in `wwctl` that assume its use. #1321
|
||||
- Remove syncuser from the list of default runtime overlays. #1322
|
||||
- Removed check for "discoverable" profiles during `wwctl upgrade nodes`.
|
||||
|
||||
## v4.6.0rc2, 2025-02-07
|
||||
|
||||
|
||||
@@ -158,7 +158,8 @@ func (legacy *NodesYaml) Upgrade(addDefaults bool, replaceOverlays bool, warewul
|
||||
}
|
||||
|
||||
type Node struct {
|
||||
Profile `yaml:"-,inline"`
|
||||
Discoverable string `yaml:"discoverable,omitempty"`
|
||||
Profile `yaml:"-,inline"`
|
||||
}
|
||||
|
||||
func (legacy *Node) Upgrade(addDefaults bool, replaceOverlays bool) (upgraded *node.Node) {
|
||||
@@ -330,7 +331,6 @@ type Profile struct {
|
||||
ImageName string `yaml:"image name,omitempty"`
|
||||
ContainerName string `yaml:"container name,omitempty"`
|
||||
Disabled string `yaml:"disabled,omitempty"`
|
||||
Discoverable string `yaml:"discoverable,omitempty"`
|
||||
Disks map[string]*Disk `yaml:"disks,omitempty"`
|
||||
FileSystems map[string]*FileSystem `yaml:"filesystems,omitempty"`
|
||||
Init string `yaml:"init,omitempty"`
|
||||
@@ -383,9 +383,6 @@ func (legacy *Profile) Upgrade(addDefaults bool, replaceOverlays bool) (upgraded
|
||||
if legacy.Disabled != "" {
|
||||
logIgnore("Disabled", legacy.Disabled, "obsolete")
|
||||
}
|
||||
if legacy.Discoverable != "" {
|
||||
logIgnore("Discoverable", legacy.Discoverable, "invalid for profiles")
|
||||
}
|
||||
if legacy.Disks != nil {
|
||||
for name, disk := range legacy.Disks {
|
||||
upgraded.Disks[name] = disk.Upgrade()
|
||||
|
||||
Reference in New Issue
Block a user