New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CONSOLE-2458: Add checkbox for cleaning up operand when uninstalling operator #9142
CONSOLE-2458: Add checkbox for cleaning up operand when uninstalling operator #9142
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dtaylor113. Great to see progress on this.
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/operand/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good 👍
Found few nits.
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
e85f048
to
a27de04
Compare
a27de04
to
e4aeb4d
Compare
|
Hi, I've addressed:
|
e4aeb4d
to
e598e23
Compare
3201869
to
9da920f
Compare
8b86d44
to
ca83a1e
Compare
ca83a1e
to
3567227
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Most of my comments are just nits on best practices and consistency stuff. I do think the small helper components that you declared inside the modal component should probably be moved into separate components so that React can do it's job and re-render those only as necessary.
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
54034ce
to
6463150
Compare
|
Hi @TheRealJon, I believe I have address all of your review comments -thanks |
ac4e59c
to
4b80bbb
Compare
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
| cancel?: () => void; | ||
| }; | ||
|
|
||
| type operandErrorsProps = { operand: K8sResourceCommon; errorMessage: string }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't call this props since it's not a components. Types should have a uppercase first letter.
| type operandErrorsProps = { operand: K8sResourceCommon; errorMessage: string }; | |
| type OperandError = { operand: K8sResourceCommon; errorMessage: string }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed
| ); | ||
| }; | ||
|
|
||
| const OperandErrorsList: React.FC<OperandErrorsListProps> = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const OperandErrorsList: React.FC<OperandErrorsListProps> = ({ | |
| const OperandErrorList: React.FC<OperandErrorListProps> = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
Let's not block the feature on this. We can handle this in a follow on. |
|
Looks good overall. Just some minor comments, but we should be able to go ahead and test. |
e34245f
to
7447329
Compare
|
Hi @yanpzhan, test case lgtm -thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, otherwise LGTM. We'll need QE approval. Thanks @dtaylor113 !
frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx
Outdated
Show resolved
Hide resolved
7447329
to
592b08a
Compare
|
@dtaylor113 Will need rebase |
|
/label qe-approved |
|
/hold cancel |
|
@dtaylor113 Needs rebase :/ |
592b08a
to
4b4d504
Compare
|
@spadgett, rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
/retest |
4b4d504
to
687db79
Compare
…dded Operands table, 'delete all' checkbox, and k8kill cmds to delete operands
687db79
to
682f7cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dtaylor113, spadgett, TheRealJon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Updated Uninstall Operator Modal:
BEFORE SUBMIT
AFTER SUBMIT
AFTER SUBMIT (with 'delete all operands' NOT checked!)
AFTER SUBMIT Errors and Alerts
Please see these screenshots of all possible submit results.