-
Notifications
You must be signed in to change notification settings - Fork 243
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
Dynamic registry support #2940
Dynamic registry support #2940
Conversation
Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
I will add unit tests and integration tests in my following commit of this PR. |
/assign |
/area devfile |
Codecov Report
@@ Coverage Diff @@
## master #2940 +/- ##
=======================================
Coverage 45.50% 45.50%
=======================================
Files 109 109
Lines 10501 10501
=======================================
Hits 4778 4778
Misses 5264 5264
Partials 459 459 Continue to review full report at Codecov.
|
Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
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.
We also need to handle gracefully if the user already have a preference.yaml file but have no registry entry, i.e. a preference file created in previous version of odo. In that case, we can just default back to the default list of repos (instead of empty); otherwise, the user will need to workaround the case to manually add the default list of repos before they can get odo catalog list components
to work again after they update to the latest version of odo.
Yup, my latest commit will handle the following two cases regarding new odo version migration and add default registries for user:
|
Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
If we are adding the capability to add registries, should we still be providing a default that points to a personal git repository (ie Elson's)? I can see how having this temporarily to provide the newer registry index.json might have been a good thing but with the new functionality I don't think having a personal git repository listed in the code is OK. |
The original idea regarding default registry was to let it host on personal git repository for tech preview as it's easier to manage and manipulate for both testing and development. Given we have plan for support devfile 2.0, so one option is we can do the default registry migration with devfile 2.0 support together. I can bring this up in our status meeting and discuss:
|
Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
…amicRegistrySupport Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
…amicRegistrySupport Signed-off-by: jingfu wang <jingfu.j.wang@ibm.com>
/retest |
/retest |
1 similar comment
/retest |
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.
@GeekArthur Thanks for the discussions and accommodating the requested changes.
/lgtm
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
11 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@GeekArthur: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
Signed-off-by: jingfu wang jingfu.j.wang@ibm.com
What type of PR is this?
/kind feature
What does does this PR do / why we need it:
Currently we only support static registry, which means user only can create component with devfile that is hosted on our two predefined registries:
Che devfile registry: https://github.com/eclipse/che-devfile-registry/tree/master/devfiles
Private devfile registry: https://github.com/elsony/devfile-registry/tree/master/devfiles
This PR is to implement dynamic registry support, with this PR users can easily configure their own registries with the following operations:
Which issue(s) this PR fixes:
Fixes #2635
How to test changes / Special notes to the reviewer:
Special notes:
odo registry add MyRegistry https://raw.githubusercontent.com/GeekArthur/registry/master
)