Implement volumeEncryption feature flag

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 11:50:40 +01:00
parent 780106f32a
commit 48a93f6c9c
9 changed files with 75 additions and 46 deletions
@@ -127,14 +127,23 @@ export default {
showEditAsYaml() {
return this.value.spec.sourceType === DOWNLOAD || this.value.spec.sourceType === CLONE;
},
radioGroupOptions() {
if (this.value.volumeEncryptionFeatureEnabled) {
return [
DOWNLOAD,
UPLOAD,
ENCRYPT,
DECRYPT
];
}
return [
DOWNLOAD,
UPLOAD,
ENCRYPT,
DECRYPT
UPLOAD
];
},
storageClassOptions() {
const inStore = this.$store.getters['currentProduct'].inStore;
const storages = this.$store.getters[`${ inStore }/all`](STORAGE_CLASS);