-
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
start breaking deps on pkg/oc #17309
start breaking deps on pkg/oc #17309
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: juanvallejo Assign the PR to them by writing 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 |
@juanvallejo can you dig into this one: pkg/cmd/infra/builder/builder.go ? I'm betting its a function for going from kubeconfig file to clientConfig. the image-registry hit a similar problem |
@deads2k sure, will look into it now |
@deads2k The dependency is only on
The same is true for pkg/cmd/infra/router/f5.go, pkg/cmd/infra/deployer/deployer.go, pkg/cmd/infra/router/template.go. and pkg/cmd/server/start/kubernetes/kubernetes.go
Any chance we could just make all of these subcommands under |
|
@juanvallejo |
|
pkg/cmd/server/start/master_args.go depends on generated bootstrap bindata, which is under |
|
4b9c4d9
to
7c5030a
Compare
@juanvallejo what would it mean to "move some of the diagnostic commands under pkg/oc"? I don't think there's a reason to have |
…-dependency-non-cli-pkgs Automatic merge from submit-queue. break dependency on version cmd for non-cli pkgs This patch solves a few of the items (currently checked) from #17309 Removes dependency on `pkg/cli/cmd/version` for packages outside of the `pkg/oc` subtree. cc @deads2k @liggitt @openshift/cli-review
7c5030a
to
c295644
Compare
@juanvallejo: The following tests 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. |
…strap-policy Automatic merge from submit-queue. Remove overwrite_bootstrappolicy and pkg/cmd/server/admin/legacyetcd Fixes #15817 This patch solves a few of the items (currently checked) from #17309 Removes the file `pkg/cmd/server/admin/overwrite_bootstrappolicy.go` which has been deprecated (and had some dependencies on `pkg/oc`. It also removes the deprecated package `pkg/cmd/server/admin/legacyetcd`. cc @deads2k @liggitt @openshift/cli-review
@deads2k only dependency left to address is pkg/cmd/openshift/openshift.go which brings in nine packages from |
…pkg-oc Automatic merge from submit-queue. move pkg/diagnostices -> pkg/oc/admin/diagnostics This patch is a part of pull/17356 - it aims to break all dependencies between packages outside of pkg/oc and the clientcmd package. This patch also partially solves a few of the items (currently checked) from #17309. By moving `pkg/diagnostics` to the `pkg/oc` subtree, we are eliminating package dependencies on `pkg/oc/...` in packages outside of that subtree. cc @liggitt @deads2k @openshift/cli-review @sosiouxme
…o-pkg-oc Automatic merge from submit-queue (batch tested with PRs 17417, 17332). Begin moving pkgs w/ deps on pkg/oc This patch solves a few of the items (currently checked) from #17309 cc @deads2k @openshift/cli-review @liggitt
…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
…cmds-to-pkg-oc Automatic merge from submit-queue. move "openshift ex" -> "oc ex" Moves the experimental command group to `oc` in order to break deps on `pkg/oc` in packages outside of that subtree. Part of openshift#17309 and openshift#17356 Release-Note: `Experimental commands moved from the "openshift" parent to the "oc" parent` cc @deads2k @liggitt
Begin breaking dependencies on the
pkg/oc
subtree from the rest of the codebase.https://docs.google.com/document/d/1mS-KRkU8zjCleBNi3WWhLtkH10hb8h4ajpFM743jnqg
This PR only serves to track affected files and their respective PRs.
The following is a list of files whose dependency on
pkg/oc
packages needs to be broken:pkg/generate/app/cmd/describe.go(movedpkg/generate/app/cmd
->pkg/oc/generate/app/cmd
) Begin moving pkgs w/ deps on pkg/oc #17332pkg/build/generator/generator.goBegin moving pkgs w/ deps on pkg/oc #17332oc login
) break dep on clientcmd in pkgs outside pkg oc #17357clientcmd
pkg topkg/oc
move pkg/cmd/util/clientcmd -> pkg/oc/cli/util/clientcmd #17356)clientcmd
pkg topkg/oc
move pkg/cmd/util/clientcmd -> pkg/oc/cli/util/clientcmd #17356)pkg/cmd/admin/policy/modify_roles_test.goBegin moving pkgs w/ deps on pkg/oc #17332pkg/oc/admin/policy
: will move to pkg/oc) move pkg/diagnostices -> pkg/oc/admin/diagnostics #17393pkg/oc/admin/policy
: will move to pkg/oc) move pkg/diagnostices -> pkg/oc/admin/diagnostics #17393bold = only depend on
pkg/oc
for theNewCmdVersion
logic - will make simple version helper outside ofpkg/oc
to resolvecc @liggitt @deads2k @mfojtik @bparees