diff --git a/packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json b/packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json index b6fccd461..d365151a6 100644 --- a/packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json +++ b/packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json @@ -142,7 +142,6 @@ "Edit Maximum concurrent VM migrations": "Edit Maximum concurrent VM migrations", "Edit migration plan target namespace": "Edit migration plan target namespace", "Edit migration plan transfer network": "Edit migration plan transfer network", - "Edit Must gather cleanup after (hours)": "Edit Must gather cleanup after (hours)", "Edit NetworkMap": "Edit NetworkMap", "Edit Plan": "Edit Plan", "Edit plan name": "Edit plan name", @@ -250,7 +249,6 @@ "MTU": "MTU", "Multiple NICs mapped to Pod Networking ": "Multiple NICs mapped to Pod Networking ", "Multiple NICs on the same network": "Multiple NICs on the same network", - "Must gather cleanup after (hours)": "Must gather cleanup after (hours)", "Name": "Name", "Name is primarily intended for creation idempotence and configuration definition. Cannot be updated.": "Name is primarily intended for creation idempotence and configuration definition. Cannot be updated.", "Name is required and must be a unique within a namespace and valid Kubernetes name.": "Name is required and must be a unique within a namespace and valid Kubernetes name.", @@ -347,7 +345,6 @@ "Please enter the interval in seconds for snapshot pooling, if empty default value will be used.": "Please enter the interval in seconds for snapshot pooling, if empty default value will be used.", "Please enter the limit for CPU usage by the controller in milliCPU, if empty default value will be used.": "Please enter the limit for CPU usage by the controller in milliCPU, if empty default value will be used.", "Please enter the limit for memory usage by the controller in Mi, if empty default value will be used.": "Please enter the limit for memory usage by the controller in Mi, if empty default value will be used.", - "Please enter the maximum age in hours for must gather cleanup, if empty default value will be used.": "Please enter the maximum age in hours for must gather cleanup, if empty default value will be used.", "Please enter the maximum number of concurrent VM migrations, if empty default value will be used.": "Please enter the maximum number of concurrent VM migrations, if empty default value will be used.", "Pod": "Pod", "Pod network": "Pod network", @@ -429,7 +426,6 @@ "source": "source", "Source Only": "Source Only", "Source provider": "Source provider", - "Specifies the duration for retaining 'must gather' reports before they are automatically deleted. The default value is -1, which implies automatic cleanup is disabled.": "Specifies the duration for retaining 'must gather' reports before they are automatically deleted. The default value is -1, which implies automatic cleanup is disabled.", "Specify a list of passphrases for the Linux Unified Key Setup (LUKS)-encrypted devices for the VMs that you want to migrate.": "Specify a list of passphrases for the Linux Unified Key Setup (LUKS)-encrypted devices for the VMs that you want to migrate.", "Specify the type of source provider. Allowed values are ova, ovirt, vsphere,\n openshift, and openstack. This label is needed to verify the credentials are correct when the remote system is accessible and, for RHV, to retrieve the Manager CA certificate when\n a third-party certificate is specified.": "Specify the type of source provider. Allowed values are ova, ovirt, vsphere,\n openshift, and openstack. This label is needed to verify the credentials are correct when the remote system is accessible and, for RHV, to retrieve the Manager CA certificate when\n a third-party certificate is specified.", "Staging": "Staging", @@ -468,7 +464,6 @@ "The limit for CPU usage by the controller, specified in milliCPU. Default value is 500m.": "The limit for CPU usage by the controller, specified in milliCPU. Default value is 500m.", "The limit for memory usage by the controller, specified in Megabytes (Mi). Default value is 800Mi.": "The limit for memory usage by the controller, specified in Megabytes (Mi). Default value is 800Mi.", "The Manager CA certificate unless it was replaced by a third-party certificate, in which case, enter the Manager Apache CA certificate.": "The Manager CA certificate unless it was replaced by a third-party certificate, in which case, enter the Manager Apache CA certificate.", - "The maximum age in hours for must gather cleanup. Default value is -1, which implies never.": "The maximum age in hours for must gather cleanup. Default value is -1, which implies never.", "The password for the ESXi host admin": "The password for the ESXi host admin", "The plan is not ready - ": "The plan is not ready - ", "The provider is not ready - ": "The provider is not ready - ", diff --git a/packages/forklift-console-plugin/src/modules/Overview/modal/EditCleanupMaxAgeModal.tsx b/packages/forklift-console-plugin/src/modules/Overview/modal/EditCleanupMaxAgeModal.tsx deleted file mode 100644 index 24db3d242..000000000 --- a/packages/forklift-console-plugin/src/modules/Overview/modal/EditCleanupMaxAgeModal.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import React from 'react'; -import { EditModal, ModalInputComponentType } from 'src/modules/Providers/modals'; -import { useForkliftTranslation } from 'src/utils/i18n'; - -import { ForkliftControllerModel } from '@kubev2v/types'; -import { ModalVariant } from '@patternfly/react-core'; - -import { EditSettingsModalProps } from './EditSettingsModalProps'; -import SettingsSelectInput from './SettingsSelectInput'; - -// Define the options -const options = [ - { key: '-1', name: 'Disable', description: 'Never perform must gather cleanup' }, - { key: '1h', name: '1h', description: 'Clean must gather API after 1 hour' }, - { key: '12h', name: '12h', description: 'Clean must gather API after 12 hours' }, - { key: '24h', name: '24h', description: 'Clean must gather API after 24 hours' }, - { key: '72h', name: '72h', description: 'Clean must gather API after 72 hours' }, -]; - -/** - * CleanupMaxAgeSelect component. - * Wraps the SettingsSelectInput component with pre-defined options. - * - * @param {ModalInputComponentProps} props - Properties passed to the component - * @returns {JSX.Element} - */ -const CleanupMaxAgeSelect: ModalInputComponentType = (props) => { - return ; -}; - -export const EditCleanupMaxAgeModal: React.FC = (props) => { - const { t } = useForkliftTranslation(); - - return ( - - ); -}; diff --git a/packages/forklift-console-plugin/src/modules/Overview/modal/index.ts b/packages/forklift-console-plugin/src/modules/Overview/modal/index.ts index f24dd03fc..93ac82708 100644 --- a/packages/forklift-console-plugin/src/modules/Overview/modal/index.ts +++ b/packages/forklift-console-plugin/src/modules/Overview/modal/index.ts @@ -1,5 +1,4 @@ // @index(['./*', /style/g], f => `export * from '${f.path}';`) -export * from './EditCleanupMaxAgeModal'; export * from './EditControllerCPULimitModal'; export * from './EditControllerMemoryLimitModal'; export * from './EditMaxVMInFlightModal'; diff --git a/packages/forklift-console-plugin/src/modules/Overview/views/overview/tabs/Details/cards/SettingsCard.tsx b/packages/forklift-console-plugin/src/modules/Overview/views/overview/tabs/Details/cards/SettingsCard.tsx index 068eb3081..9925780bc 100644 --- a/packages/forklift-console-plugin/src/modules/Overview/views/overview/tabs/Details/cards/SettingsCard.tsx +++ b/packages/forklift-console-plugin/src/modules/Overview/views/overview/tabs/Details/cards/SettingsCard.tsx @@ -1,6 +1,5 @@ import React, { FC } from 'react'; import { - EditCleanupMaxAgeModal, EditControllerCPULimitModal, EditControllerMemoryLimitModal, EditMaxVMInFlightModal, @@ -24,11 +23,6 @@ const SettingsCard_: FC = ({ obj }) => { const { t } = useForkliftTranslation(); const { showModal } = useModal(); - const mustGatherAPICleanupMaxAge = - obj?.spec?.['must_gather_api_cleanup_max_age'] === -1 - ? 'Disabled' - : obj?.spec?.['must_gather_api_cleanup_max_age']; - return ( {t('Settings')} @@ -60,30 +54,6 @@ const SettingsCard_: FC = ({ obj }) => { onEdit={() => showModal()} /> - {'Disabled'} - ) - } - moreInfoLink={ - 'https://access.redhat.com/documentation/en-us/migration_toolkit_for_virtualization/2.6/html-single/installing_and_using_the_migration_toolkit_for_virtualization/index#advanced-migration-options' - } - helpContent={ - - {t( - "Specifies the duration for retaining 'must gather' reports before they are automatically deleted. The default value is -1, which implies automatic cleanup is disabled.", - )} - - } - crumbs={['spec', 'must_gather_api_cleanup_max_age']} - onEdit={() => showModal()} - /> -