• Kubernetes Submit Queue's avatar
    Merge pull request #54533 from mengqiy/kubectl_scheme · 812f1a3e
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 54533, 54777, 54763, 54806, 54703). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Create kubectl's own instance of Scheme and Registry
    
    Create kubectl's own instance of Registry and Scheme.
    Switch most command that doesn't depend on internal types to use kubectl's own scheme and register.
    
    There are some hack of registering the internal types in some of unit test now, they should be gone after switch to the external type.
    
    Switch kubectl's factory code to use kubectl's scheme will create a lot of ripples.
    I don't want make this PR a super giant PR, so I will do it in a followup PR.
    
    Partially addressed #48564.
    
    Copy the summary from https://github.com/kubernetes/kubernetes/pull/54533#issuecomment-340522302:
    - creates pkg/kubectl/scheme (install.go and scheme.go) with
    deps on properly vendored k8s.io packages.
    - deletes about 80% percent of dependence on pkg/api/legacyscheme
    - replaces direct dependence from pkg/kubectl on
    pkg/apis/rbac
    to a vendor style dependence on
    k8s.io/api/rbac
    and removes dependencies on rbac paths containing internalversion
    - replaces almost 50% of direct dependence on pkg/api with (properly vendored)
    k8s.io/api/core/v1
    - deletes all of dependence on pkg/apis/policy and k8s.io/api/policy/v1beta1
    
    ```release-note
    NONE
    ```
    
    /assign @monopole @apelisse
    cc: @pwittrock
    812f1a3e
Name
Last commit
Last update
.github Loading commit data...
Godeps Loading commit data...
api Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
docs Loading commit data...
examples Loading commit data...
hack Loading commit data...
logo Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
staging Loading commit data...
test Loading commit data...
third_party Loading commit data...
translations Loading commit data...
vendor Loading commit data...
.bazelrc Loading commit data...
.generated_files Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.kazelcfg.json Loading commit data...
BUILD.bazel Loading commit data...
CHANGELOG-1.2.md Loading commit data...
CHANGELOG-1.3.md Loading commit data...
CHANGELOG-1.4.md Loading commit data...
CHANGELOG-1.5.md Loading commit data...
CHANGELOG-1.6.md Loading commit data...
CHANGELOG-1.7.md Loading commit data...
CHANGELOG-1.8.md Loading commit data...
CHANGELOG-1.9.md Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
Makefile.generated_files Loading commit data...
OWNERS Loading commit data...
OWNERS_ALIASES Loading commit data...
README.md Loading commit data...
SUPPORT.md Loading commit data...
Vagrantfile Loading commit data...
WORKSPACE Loading commit data...
code-of-conduct.md Loading commit data...
labels.yaml Loading commit data...