-
Notifications
You must be signed in to change notification settings - Fork 143
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
Task/NVPE-32: Cleanup NIM integration tech preview resources #1369
Conversation
Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com>
Hi @TomerFi. Thanks for your PR. I'm waiting for a opendatahub-io 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. Instructions 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. |
pkg/upgrade/upgrade.go
Outdated
|
||
// cleanup nvidia nim integration remove tech preview | ||
multiErr = multierror.Append(multiErr, cleanupNimIntegrationTechPreview(ctx, cli, oldReleaseVersion)) |
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.
@andrewballantyne dont we need to cleanup api key secret also? AFAIU UI will create the secret when user selects the enable button. So, if the secret is present then it will result in an error.
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.
Yeah, that's a good catch. If we don't delete the secret and we don't have a NIM Account CR here... it will likely block the creation flow. @etirelli should we delete the customer's "key file" or look at some what to keep/update it on install in the new Controller way?
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 would say update/reuse would be best as it is unlikely the API key itself changed and forcing the customer to update might create confusion.
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.
discussed in slack. We will delete the secret if it exists and let the user recreate it.
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.
Resolved in 0483894.
Co-authored-by: Wen Zhou <wenzhou@redhat.com>
Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com>
Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com>
Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com>
Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com>
4d617c5
to
610ea2e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## incubation #1369 +/- ##
=============================================
Coverage ? 18.96%
=============================================
Files ? 30
Lines ? 3390
Branches ? 0
=============================================
Hits ? 643
Misses ? 2678
Partials ? 69 ☔ View full report in Codecov by Sentry. |
/ok-to-test |
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: etirelli 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 |
put on-hold, |
/retest |
test: install 2.15.0 ODH do clean install, creation DSCI,
build 2.16.1114 with PR, install
|
in short, test result looks good |
New changes are detected. LGTM label has been removed. |
…ahub-io#1369) * chore: cleanup nim integration tech preview resources Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> * chore: apply suggestions from code review Co-authored-by: Wen Zhou <wenzhou@redhat.com> * chore: addressed pr reviews, better logging Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> * chore: set nim cleanup for minors 14 and 15 Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> * chore: nim tp cleanup should remove api key secret Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> * chore: addresed pr reviews, rewrite cleanup func Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> --------- Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> Co-authored-by: Wen Zhou <wenzhou@redhat.com> (cherry picked from commit 84d22f3)
* Task/NVPE-32: Cleanup NIM integration tech preview resources (#1369) * chore: cleanup nim integration tech preview resources Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> * chore: apply suggestions from code review Co-authored-by: Wen Zhou <wenzhou@redhat.com> * chore: addressed pr reviews, better logging Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> * chore: set nim cleanup for minors 14 and 15 Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> * chore: nim tp cleanup should remove api key secret Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> * chore: addresed pr reviews, rewrite cleanup func Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> --------- Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com> Co-authored-by: Wen Zhou <wenzhou@redhat.com> (cherry picked from commit 84d22f3) * update: use old logger Signed-off-by: Wen Zhou <wenzhou@redhat.com> --------- Signed-off-by: Wen Zhou <wenzhou@redhat.com> Co-authored-by: Tomer Figenblat <tomer.figenblat@gmail.com>
Description
Version 2.16 will include the GA version of NVIDIA NIM integration. Cleaning up the TP version's resources introduced in 2.15 is required.
https://issues.redhat.com/browse/NVPE-32
How Has This Been Tested?
go fmt make lint make test go mod tidy
Screenshot or short clip
Merge criteria