Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions operator/inventory/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,7 @@ func (nd *Exclude) IsStorageNodeExcluded(name string, class string) bool {
}

func (cfg *Config) HasStorageClass(name string) bool {
for _, class := range cfg.ClusterStorage {
if class == name {
return true
}
}

return false
return slices.Contains(cfg.ClusterStorage, name)
}

func (cfg *Config) StorageClassesForNode(name string) []string {
Expand Down
Loading