-
Notifications
You must be signed in to change notification settings - Fork 151
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
refactor: get platform calls #1251
Conversation
- move check on platform into top of dsc and dsci reconcile to reduce duplicated calls - add logger when operator start to show which platform is running on Signed-off-by: Wen Zhou <[email protected]>
will rebase https://github.com/opendatahub-io/opendatahub-operator/pull/1059/files first |
Given this change, should we add an explicit testcase in e2e that verifies platform? |
i can add a simple one |
Signed-off-by: Wen Zhou <[email protected]>
updated 4 unit-tests for each case. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ykaliuta 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 |
There is no need to maintain the api since GetRelease performs the call and returns the information. The extra work GetRelease does (in addition to GetPlatform) is not important since only one call in startup left. Since the api removed, tests do not make sense, so revert testing part of d73b3da ("refactor: get platform calls (opendatahub-io#1251)") Signed-off-by: Yauheni Kaliuta <[email protected]>
There is no need to maintain the api since GetRelease performs the call and returns the information. The extra work GetRelease does (in addition to GetPlatform) is not important since only one call in startup left. Since the api removed, tests do not make sense, so revert testing part of d73b3da ("refactor: get platform calls (#1251)") Signed-off-by: Yauheni Kaliuta <[email protected]>
* refactor: get platform calls - move check on platform into top of dsc and dsci reconcile to reduce duplicated calls - add logger when operator start to show which platform is running on - test: add testcase for GetPlatform() --------- Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit d73b3da)
There is no need to maintain the api since GetRelease performs the call and returns the information. The extra work GetRelease does (in addition to GetPlatform) is not important since only one call in startup left. Since the api removed, tests do not make sense, so revert testing part of d73b3da ("refactor: get platform calls (red-hat-data-services#1251)") Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit d6eda01)
* refactor: get platform calls - move check on platform into top of dsc and dsci reconcile to reduce duplicated calls - add logger when operator start to show which platform is running on - test: add testcase for GetPlatform() --------- Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit d73b3da)
There is no need to maintain the api since GetRelease performs the call and returns the information. The extra work GetRelease does (in addition to GetPlatform) is not important since only one call in startup left. Since the api removed, tests do not make sense, so revert testing part of d73b3da ("refactor: get platform calls (red-hat-data-services#1251)") Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit d6eda01)
* refactor: get platform calls - move check on platform into top of dsc and dsci reconcile to reduce duplicated calls - add logger when operator start to show which platform is running on - test: add testcase for GetPlatform() --------- Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit d73b3da)
There is no need to maintain the api since GetRelease performs the call and returns the information. The extra work GetRelease does (in addition to GetPlatform) is not important since only one call in startup left. Since the api removed, tests do not make sense, so revert testing part of d73b3da ("refactor: get platform calls (red-hat-data-services#1251)") Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit d6eda01)
* refactor: get platform calls - move check on platform into top of dsc and dsci reconcile to reduce duplicated calls - add logger when operator start to show which platform is running on - test: add testcase for GetPlatform() --------- Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit d73b3da)
There is no need to maintain the api since GetRelease performs the call and returns the information. The extra work GetRelease does (in addition to GetPlatform) is not important since only one call in startup left. Since the api removed, tests do not make sense, so revert testing part of d73b3da ("refactor: get platform calls (red-hat-data-services#1251)") Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit d6eda01)
* refactor: get platform calls - move check on platform into top of dsc and dsci reconcile to reduce duplicated calls - add logger when operator start to show which platform is running on - test: add testcase for GetPlatform() --------- Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit d73b3da)
There is no need to maintain the api since GetRelease performs the call and returns the information. The extra work GetRelease does (in addition to GetPlatform) is not important since only one call in startup left. Since the api removed, tests do not make sense, so revert testing part of d73b3da ("refactor: get platform calls (#1251)") Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit d6eda01)
Description
(split from [RFC] feat: pass platform from env variable and fall back to use old logic #1231)
How Has This Been Tested?
local build: quay.io/wenzhou/opendatahub-operator:2.18.919-1
Screenshot or short clip
Merge criteria