-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 2311867: Prepare cluster for disaster recovery - Greenfield
Signed-off-by: Gowtham Shanmugasundaram <[email protected]>
- Loading branch information
1 parent
5083549
commit 400c25f
Showing
14 changed files
with
160 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...-storage-system/create-storage-system-steps/data-protection-step/data-protection-step.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import * as React from 'react'; | ||
import { useCustomTranslation } from '@odf/shared/useCustomTranslationHook'; | ||
import { Form, Checkbox } from '@patternfly/react-core'; | ||
import { WizardDispatch, WizardState } from '../../reducer'; | ||
|
||
export const DataProtection: React.FC<DataProtectionProps> = ({ | ||
dataProtection, | ||
dispatch, | ||
}) => { | ||
const { t } = useCustomTranslation(); | ||
|
||
return ( | ||
<Form> | ||
<Checkbox | ||
id="region-DR-preparation" | ||
isChecked={dataProtection.enableRDRPreparation} | ||
data-checked-state={dataProtection.enableRDRPreparation} | ||
label={t('Prepare cluster for disaster recovery (Regional-DR only)')} | ||
description={t( | ||
'Set up the storage system for disaster recovery service with the essential configurations in place. This will subsequently allows seamless implementation of the disaster recovery strategies for your workloads.' | ||
)} | ||
onChange={() => | ||
dispatch({ | ||
type: 'dataProtection/enableRDRPreparation', | ||
payload: !dataProtection.enableRDRPreparation, | ||
}) | ||
} | ||
/> | ||
</Form> | ||
); | ||
}; | ||
|
||
type DataProtectionProps = { | ||
dataProtection: WizardState['dataProtection']; | ||
dispatch: WizardDispatch; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.