remove openshift infra command#17482
Conversation
|
/unassign |
| cmd/openshift | ||
| cmd/oc | ||
| cmd/kubefed | ||
| cmd/openshift-diagnostics |
There was a problem hiding this comment.
Hrm, confusing that this is just the binary used by diagnostics in pods. It’s fine for now.
There was a problem hiding this comment.
Hrm, confusing that this is just the binary used by diagnostics in pods. It’s fine for now.
Yeah. I'm still open to different ways of structuring it as we push through 3.9. For now, I need them out of openshift so I can snip kubectl dependencies and they likely belong together under a related suite of commands.
There was a problem hiding this comment.
@deads2k @smarterclayton got no problem with breaking this out, and don't much care about the name, but it needs to actually be included in the image which it isn't in 3.9-alpha.0... how can I make that happen?
There was a problem hiding this comment.
@deads2k @smarterclayton got no problem with breaking this out, and don't much care about the name, but it needs to actually be included in the image which it isn't in 3.9-alpha.0... how can I make that happen?
I would try to work backwards from images/origin/Dockerfile. We're installing the RPM, so if it isn't present, I suspect the RPM doesn't include it, which probably means fixing up origin.spec.
|
Lgtm |
| _ "k8s.io/kubernetes/pkg/api/install" | ||
| _ "k8s.io/kubernetes/pkg/apis/autoscaling/install" | ||
| _ "k8s.io/kubernetes/pkg/apis/batch/install" | ||
| _ "k8s.io/kubernetes/pkg/apis/extensions/install" |
There was a problem hiding this comment.
cmd/openshift-diagnostics/main.go
No, the main one installs all. We are in need of an overhaul for installation though.
|
/lgtm need update of complete |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, mfojtik The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
d3d3f68 to
0a63dd8
Compare
|
/retest |
|
Cool, thanks for the heads up. Is there a card or doc summarizing the intent of the changes? |
It's related to this: https://trello.com/c/xemjduCn/1068-21-move-oc-to-external-repository We need to split |
|
/retest |
|
Automatic merge from submit-queue (batch tested with PRs 17299, 17482, 17471). |
Automatic merge from submit-queue (batch tested with PRs 17299, 17482, 17471).
remove openshift infra command
This removes the `openshift infra` command. It does not replace
```
- irouter.NewCommandTemplateRouter("router"),
- irouter.NewCommandF5Router("f5-router"),
- deployer.NewCommandDeployer("deploy"),
- recycle.NewCommandRecycle("recycle", out),
- builder.NewCommandS2IBuilder("sti-build"),
- builder.NewCommandDockerBuilder("docker-build"),
```
since those have their own binaries.
@sosiouxme I created a new command `openshift-diagnostics` to hold `openshift-diagnostics diagnostic-pod` and `openshift-diagnostics network-diagnostic-pod`. I'm not attached to the name, but looking at the dependency tree, I'm betting these move with `oc` later this month.
@smarterclayton I think this fulfills the intent of our conversation last week.
@juanvallejo fyi
…g-oc Automatic merge from submit-queue. move pkg/cmd/util/clientcmd -> pkg/oc/cli/util/clientcmd This patch *partially* solves a few of the items (currently checked) from #17309 Now that `clientcmd` (which includes printer factory methods) is moved into `pkg/oc`, the following files outside of `pkg/oc` need to have their dependency on `clientcmd` broken (this will be done in a separate PR): - [x] pkg/cmd/server/origin/controller/config.go (#17357) - [x] pkg/cmd/server/admin/create_error_template.go (#17357) - [x] pkg/cmd/server/admin/create_bootstrap_project_template.go (#17357) - [x] pkg/cmd/server/admin/overwrite_bootstrappolicy.go (*this file has been removed by* #17336) - [x] pkg/cmd/server/admin/create_login_template.go (#17357) - [x] pkg/cmd/server/admin/create_provider_selection_template.go (#17357) - [x] **pkg/cmd/infra/router/template.go** (Wanted by: `pkg/cmd/openshift/openshift.go` (no other dependents)) (#17357) - [x] **pkg/cmd/infra/router/f5.go** (Wanted by: `pkg/cmd/openshift/openshift.go` (no other dependents)) (#17357) - [x] pkg/cmd/openshift/openshift.go (#17486 and #17482) - [x] pkg/cmd/dockerregistry/dockerregistry.go (Wanted by: `cmd/dockerregistry/main.go` (depends on `clientcmd.Config`)) (#17357) - [x] *pkg/diagnostics/networkpod/util/util.go* (Can be addressed by moving `pkg/diagnostics` inside existing `pkg/oc/admin/diagnostics`) #17393 - [x] *pkg/diagnostics/client/config_contexts.go* (Can be addressed by moving `pkg/diagnostics` inside existing `pkg/oc/admin/diagnostics`) #17393 - [x] *pkg/diagnostics/client/run_diagnostics_pod.go* (Can be addressed by moving `pkg/diagnostics` inside existing `pkg/oc/admin/diagnostics`) #17393 - [x] *pkg/diagnostics/pod/auth.go* (Can be addressed by moving `pkg/diagnostics` inside existing `pkg/oc/admin/diagnostics`) #17393 - [x] *pkg/diagnostics/network/run_pod.go* (Can be addressed by moving `pkg/diagnostics` inside existing `pkg/oc/admin/diagnostics`) #17393 - [x] pkg/ipfailover/keepalived/plugin.go (moved to `pkg/oc/experimental`) (#17357) - [x] pkg/federation/kubefed/kubefed.go (#17357) - [x] pkg/dockerregistry/server/client/client.go (#17357) - [x] pkg/dockerregistry/server/auth_test.go (#17357) **bold** = depends on `clientcmd.Config` (not sure what to do about this) AND only dependent is `pkg/cmd/openshift/openshift.go` cc @deads2k @openshift/cli-review @liggitt
- openshift#17482 removed 'openshift infra' command and diagnostic-pod/network-diagnostic-pod subcommands now are moved under openshift-diagnostics command.
|
On Fri, Dec 15, 2017 at 10:39 AM, David Eads ***@***.***> wrote:
I would try to work backwards from images/origin/Dockerfile. We're
installing the RPM, so if it isn't present, I suspect the RPM doesn't
include it, which probably means fixing up origin.spec.
Thanks, was looking at it yesterday and that was where I was headed. It's
a 162M binary; I was wondering if that was OK to add to the RPM (already
kind of huge) or if it should be folded back into an existing binary and
packaged with a symlink.
|
It was split out because the openshift binary cannot have any dependency on |
Automatic merge from submit-queue. Install openshift-diagnostics binary in dind and vagrant environments - #17482 removed 'openshift infra' command and diagnostic-pod/network-diagnostic-pod subcommands now are moved under openshift-diagnostics command.
This removes the
openshift infracommand. It does not replacesince those have their own binaries.
@sosiouxme I created a new command
openshift-diagnosticsto holdopenshift-diagnostics diagnostic-podandopenshift-diagnostics network-diagnostic-pod. I'm not attached to the name, but looking at the dependency tree, I'm betting these move withoclater this month.@smarterclayton I think this fulfills the intent of our conversation last week.
@juanvallejo fyi