Configure longhorn storageclasses based on the number of longhorn nodes in the cluster
What does this MR do and why?
This MR does below:
- Calculate the number of longhorn nodes dynamically based on
longhorn_disk_configdefined under.Values.cluster.baremetal_host_defaultor.Values.cluster.baremetal_hostsin the environmental values. - the computation of
default_longhorn_storage_classbased on the number of longhorn nodes and the computation ofdefault_storage_classto usedefault_longhorn_storage_class. - Default longhorn storage class should be set to longhorn, two-replicas-storageclass or single-replica-storageclass based on the number of longhorn nodes in the cluster.
Closes: #1714 (closed) #1856 (closed) #1460 (closed)
Test coverage
- Deployment of Sylva with single node cluster by enabling longhorn
Edited by Mohan Sharma