diff --git a/apiclient/harvester_api/models/volumes.py b/apiclient/harvester_api/models/volumes.py index 6f591408b..d15487f79 100644 --- a/apiclient/harvester_api/models/volumes.py +++ b/apiclient/harvester_api/models/volumes.py @@ -34,6 +34,7 @@ def to_dict(self, name, namespace, image_id=None): if image_id is not None: annotations.update({"harvesterhci.io/imageId": image_id}) + self.storage_cls = f"longhorn-{image_id.split('/')[1]}" if self.description is not None: annotations.update({"field.cattle.io/description": self.description}) if self.storage_cls is not None: