|
{
+ if ((action.action === 'setDefault' || action.action === 'setAsDefault' || action.action === 'promptRemove') && this.isInternalStorageClass()) {
+ return { ...action, enabled: false };
+ }
+
+ return action;
+ });
+
+ return out;
+ }
}
diff --git a/pkg/harvester/utils/storage-class.js b/pkg/harvester/utils/storage-class.js
new file mode 100644
index 00000000..c98e3b7a
--- /dev/null
+++ b/pkg/harvester/utils/storage-class.js
@@ -0,0 +1,6 @@
+import { INTERNAL_STORAGE_CLASS } from '../config/types';
+
+export function isInternalStorageClass(name) {
+ return name === INTERNAL_STORAGE_CLASS.VMSTATE_PERSISTENCE ||
+ name === INTERNAL_STORAGE_CLASS.LONGHORN_STATIC;
+}
|