Skip to content

Commit

Permalink
fix(inventory): add check for ram disk (#226)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Mar 31, 2024
1 parent 5f6a46b commit f4ed874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/types/v1beta3/clients/inventory/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func ParseStorageAttributes(attrs types.Attributes) (StorageAttributes, error) {
attr = attrs.Find(sdl.StorageAttributeClass)
class, _ := attr.AsString()

if persistent && class == "" {
if persistent && (class == "" || class == "ram") {
return StorageAttributes{}, fmt.Errorf("persistent volume must specify storage class") // nolint: goerr113
}

Expand Down

0 comments on commit f4ed874

Please sign in to comment.