-
Notifications
You must be signed in to change notification settings - Fork 140
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
chore: refactor on some logic for component manifests resources #1121
chore: refactor on some logic for component manifests resources #1121
Conversation
Signed-off-by: Wen Zhou <[email protected]>
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
Tested with dev flags. No regression
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: VaishnaviHire 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 |
0261670
into
opendatahub-io:incubation
…datahub-io#1121) * chore: refactor on some logic for component manifests resources * update: move functions to other files to make deploy.so neat Signed-off-by: Wen Zhou <[email protected]> --------- Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit 0261670)
…datahub-io#1121) * chore: refactor on some logic for component manifests resources * update: move functions to other files to make deploy.so neat Signed-off-by: Wen Zhou <[email protected]> --------- Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit 0261670)
return updateResource(ctx, cli, obj, found, owner, componentName) | ||
} | ||
// Delete resource if it exists and component is disabled | ||
return handleDisabledComponent(ctx, cli, found, componentName) |
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 do not support this change. It had clear logic found/not-found/error (basically, the same switch we discussed some time ago). Now it's again special case.
Description
can be good prepare for #1026
How Has This Been Tested?
Screenshot or short clip
Merge criteria