Skip to content

Commit 9be81c3

Browse files
committed
[minor] Add Longhorn storage provider support
1 parent 12538d2 commit 9be81c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mas/devops/mas.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ def getDefaultStorageClasses(dynClient: DynamicClient) -> dict:
7070
result.rwo = "ocs-external-storagecluster-ceph-rbd"
7171
result.rwx = "ocs-external-storagecluster-cephfs"
7272
break
73+
elif storageClass.metadata.name == "longhorn":
74+
result.provider = "longhorn"
75+
result.providerName = "Longhorn"
76+
result.rwo = "longhorn"
77+
result.rwx = "longhorn"
78+
break
7379
elif storageClass.metadata.name == "nfs-client":
7480
result.provider = "nfs"
7581
result.providerName = "NFS Client"

0 commit comments

Comments
 (0)