added forceful deployment option#2602
added forceful deployment option#2602gourhari1 wants to merge 1 commit intored-hat-storage:masterfrom
Conversation
|
Hi @gourhari1. Thanks for your PR. I'm waiting for a red-hat-storage member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
...storage-system/create-storage-system-steps/advanced-settings-step/advanced-settings-step.tsx
Show resolved
Hide resolved
...storage-system/create-storage-system-steps/advanced-settings-step/advanced-settings-step.tsx
Outdated
Show resolved
Hide resolved
...storage-system/create-storage-system-steps/advanced-settings-step/advanced-settings-step.tsx
Outdated
Show resolved
Hide resolved
| if (enableForcefulDeployment) { | ||
| requestData.spec.forcefulDeployment = { | ||
| enabled: enableForcefulDeployment, | ||
| }; | ||
| } |
There was a problem hiding this comment.
can plz u paste some reference where it says that this is the correct field that we need to add for this use case ??
|
/ok-to-test |
a4fd979 to
40f6dcd
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gourhari1 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
10eb5c4 to
e0901d7
Compare
locales/en/plugin__odf-console.json
Outdated
| "Out of {{capacity}}": "Out of {{capacity}}", | ||
| "Over the past {{daysUp}} ": "Over the past {{daysUp}} ", | ||
| "Overall image health": "Overall image health", | ||
| "Override and completely wipe any data on disks used to create this storage system": "Override and completely wipe any data on disks used to create this storage system", |
There was a problem hiding this comment.
| "Override and completely wipe any data on disks used to create this storage system": "Override and completely wipe any data on disks used to create this storage system", | |
| "Override and completely wipe any data on disks used to create this storage cluster": "Override and completely wipe any data on disks used to create this storage system", |
| if (enableForcefulDeployment) { | ||
| requestData.spec.managedResources.cephCluster.cleanupPolicy = { | ||
| wipeDevicesFromOtherClusters: enableForcefulDeployment, | ||
| }; | ||
| } |
There was a problem hiding this comment.
Is this tested ? didn't u get any error ?
requestData.spec.managedResources.cephCluster is undefined, u should have gotten error when accessing requestData.spec.managedResources.cephCluster.cleanupPolicy.
|
plz add the latest screenshot as well... |
| if (enableForcefulDeployment) { | ||
| requestData.spec.managedResources.cephCluster.cleanupPolicy = { | ||
| wipeDevicesFromOtherClusters: enableForcefulDeployment, | ||
| }; | ||
| } |
There was a problem hiding this comment.
| if (enableForcefulDeployment) { | |
| requestData.spec.managedResources.cephCluster.cleanupPolicy = { | |
| wipeDevicesFromOtherClusters: enableForcefulDeployment, | |
| }; | |
| } | |
| if (enableForcefulDeployment) { | |
| requestData.spec.managedResources = { | |
| ...requestData.spec.managedResources, | |
| cephCluster: { wipeDevicesFromOtherClusters: true }, | |
| }, | |
| }; |
| }; | ||
| } | ||
| // Add forceful deployment configuration if enabled | ||
| if (enableForcefulDeployment) { |
There was a problem hiding this comment.
nits:
| if (enableForcefulDeployment) { | |
| if (isNoProvisioner && enableForcefulDeployment) { |
e0901d7 to
be21c1b
Compare
| // Add forceful deployment configuration if enabled | ||
| if (isNoProvisioner && enableForcefulDeployment) { | ||
| requestData.spec.managedResources.cephCluster = { | ||
| ...requestData.spec.managedResources.cephCluster, |
There was a problem hiding this comment.
again, did u test this flow by creating a storage cluster ?
did u not get any error like cannot read property undefined while destruct ??
as mentioned earlier, requestData.spec.managedResources.cephCluster is undefined, right ?
8610d33 to
88614f9
Compare
| requestData.spec.managedResources.cephCluster = { | ||
| ...(requestData.spec.managedResources | ||
| .cephCluster as ManagedResourcesCephClusterKind), |
There was a problem hiding this comment.
| requestData.spec.managedResources.cephCluster = { | |
| ...(requestData.spec.managedResources | |
| .cephCluster as ManagedResourcesCephClusterKind), | |
| requestData.spec.managedResources.cephCluster = { | |
| ...(requestData.spec.managedResources | |
| .cephCluster || ({} as ManagedResourcesCephClusterKind)), |
7a5305a to
1b4d48c
Compare
| // The Next button is disabled when forceful deployment is enabled but confirmation text not equals confirm | ||
| const hasForcefulDeploymentButNoConfirmation = | ||
| enableForcefulDeployment && | ||
| !(forcefulDeploymentConfirmation?.trim().toLowerCase() === 'confirm'); |
There was a problem hiding this comment.
Please keep this as upper case validation as if user writes it lower case we might want to stop it since the placeholder is all caps.
1b4d48c to
1846bd9
Compare




issues: https://issues.redhat.com/browse/RHSTOR-8584