GetStorageAllowExpansion returns the boolean value of the 'AllowVolumeExpansion' value of the storage class
( ctx context.Context, crudClient client.Client, defaultStorageClass string, )
| 40 | |
| 41 | // GetStorageAllowExpansion returns the boolean value of the 'AllowVolumeExpansion' value of the storage class |
| 42 | func GetStorageAllowExpansion( |
| 43 | ctx context.Context, |
| 44 | crudClient client.Client, |
| 45 | defaultStorageClass string, |
| 46 | ) (*bool, error) { |
| 47 | storageClass := &storagev1.StorageClass{} |
| 48 | err := objects.Get(ctx, crudClient, client.ObjectKey{Name: defaultStorageClass}, storageClass) |
| 49 | return storageClass.AllowVolumeExpansion, err |
| 50 | } |
| 51 | |
| 52 | // IsWalStorageEnabled returns true if 'WalStorage' is being used |
| 53 | func IsWalStorageEnabled( |
no test coverage detected