Implement longhornV2LVMSupport feature flag

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 11:50:34 +01:00
parent 9a7ca75b74
commit de992aa18d
6 changed files with 54 additions and 18 deletions
@@ -106,6 +106,10 @@ export default {
return this.source === 'url';
},
longhornV2LVMSupport() {
return this.$store.getters['harvester-common/getFeatureEnabled']('longhornV2LVMSupport');
},
sourceOption() {
return [{
value: 'blank',
@@ -233,6 +237,10 @@ export default {
methods: {
getAccessMode() {
if (!this.longhornV2LVMSupport) {
return ['ReadWriteMany'];
}
const storageClassName = this.value.spec.storageClassName;
const storageClass = this.storageClasses.find((sc) => sc.name === storageClassName);