-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add origin types kubectl scheme #17815
Add origin types kubectl scheme #17815
Conversation
See travis for the revert commit format |
cmd/oc/oc.go
Outdated
@@ -31,6 +46,20 @@ func main() { | |||
runtime.GOMAXPROCS(runtime.NumCPU()) | |||
} | |||
|
|||
// add Origin types to the kubectl scheme | |||
apps.Install(scheme.GroupFactoryRegistry, scheme.Registry, scheme.Scheme) |
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.
Please make an InstallAll
method in pkg/api/install
right idea. Nit on commit name and where the big-button install lives. |
9e51498
to
dbdb9bb
Compare
@deads2k thanks, added an InstallAll method |
/retest |
cmd/oc/oc.go
Outdated
@@ -13,7 +13,7 @@ import ( | |||
"github.com/openshift/origin/pkg/oc/cli" | |||
|
|||
// install all APIs | |||
_ "github.com/openshift/origin/pkg/api/install" | |||
api "github.com/openshift/origin/pkg/api/install" |
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.
apinstall
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.
apiinstall
pkg/api/install/install.go
Outdated
@@ -592,3 +594,19 @@ func init() { | |||
return false, nil | |||
}) | |||
} | |||
|
|||
func InstallAll() { |
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.
This function should take a scheme as an argument
dbdb9bb
to
bf22e71
Compare
@deads2k thanks, review comments addressed |
pkg/api/install/install.go
Outdated
@@ -592,3 +596,19 @@ func init() { | |||
return false, nil | |||
}) | |||
} | |||
|
|||
func InstallAll(scheme *runtime.Scheme, groupFactoryRegistry announced.APIGroupFactoryRegistry, registry *registered.APIRegistrationManager) { | |||
// add Origin types to the kubectl scheme |
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.
nit: comment is now wrong
nit, squash last two commits, then tag at will. |
/approve |
bf22e71
to
8506a46
Compare
… legacyscheme so our types can be handled
8506a46
to
d2882a1
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, juanvallejo The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@deads2k I am seeing the test-cmd failure locally as well. Not sure what the cause of it might be:
|
@juanvallejo try against master. My guess is that its this pull. |
@deads2k looks like even with the This is the working strategic three-way merge patch that is generated when using This is the broken patch that is generated when switching to kubectl/scheme (with the changes from this PR): |
Probably need to figure out which object and why. That doesn't match my expectation. |
It's an ImageStream: http://pastebin.test.redhat.com/541789 Will look into why |
/retest Please review the full test history for this PR and help us cut down flakes. |
@juanvallejo: 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. |
closing in favor of #17885 |
Automatic merge from submit-queue (batch tested with PRs 17859, 17885). Add origin types kubectl scheme Fixes #17793 Builds on #17815 /assign sttts /assign juanvallejo This centralizes the legacy install function. The next logical step is going to require that we start plumbing particular schemes or build individual schemes. I looked at doing that here, but it appears we have some 500 hits just for scheme usage and I haven't decided the optimal solution for something like our graph yet.
Fixes #17793
cc @deads2k