-
Notifications
You must be signed in to change notification settings - Fork 39k
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
Create staging folder for repo k8s.io/api, move external API used by client-go to k8s.io/api #44784
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: caesarxuchao
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
8a2ca70
to
b4b2750
Compare
7cfc1db
to
0b2011c
Compare
b922529
to
6c91db5
Compare
Automatic merge from submit-queue Remove imports of k8s.io/client-go/pkg/api k8s.io/client-go/pkg/api will be eliminated by #44784, so we need to remove all imports of it. This PR is large, but mostly simple changes, like: * using constants defined in the v1 package instead of those in the internal package * using k8s.io/client-go/kubernetes/scheme.Codecs/Schemes instead of those in k8s.io/client-go/pkg/api * using `v1.SchemeGroupVersion` instead of `api.Registry.GroupOrDie(api.GroupName).GroupVersion` in tests * importing `k8s.io/kubernetes/pkg/api` instead of `k8s.io/client-go/pkg/api` if possible With this PR #45159, the only remaining imports of `k8s.io/client-go/pkg/api` are from k8s.io/metrics. ``` bash $ git grep "\"k8s.io/client-go/pkg/api\"" | grep -v "staging/src/k8s.io/client-go/pkg/api" staging/src/k8s.io/metrics/pkg/apis/custom_metrics/install/install.go:25: "k8s.io/client-go/pkg/api" Binary file staging/src/k8s.io/metrics/pkg/apis/custom_metrics/types.generated.go matches staging/src/k8s.io/metrics/pkg/apis/custom_metrics/types.go:22: "k8s.io/client-go/pkg/api" staging/src/k8s.io/metrics/pkg/apis/metrics/install/install.go:26: "k8s.io/client-go/pkg/api" staging/src/k8s.io/metrics/pkg/apis/metrics/types.go:21: "k8s.io/client-go/pkg/api" Binary file staging/src/k8s.io/metrics/pkg/apis/metrics/v1alpha1/zz_generated.conversion.go matches Binary file staging/src/k8s.io/metrics/pkg/apis/metrics/zz_generated.deepcopy.go matches staging/src/k8s.io/metrics/pkg/client/clientset_generated/clientset/fake/clientset_generated.go:24: "k8s.io/client-go/pkg/api" staging/src/k8s.io/metrics/pkg/client/custom_metrics/client.go:26: "k8s.io/client-go/pkg/api" staging/src/k8s.io/metrics/pkg/client/custom_metrics/fake/fake_client.go:24: "k8s.io/client-go/pkg/api" ```
5bb7649
to
5cfffd6
Compare
b473c41
to
0998a06
Compare
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. |
3c10c2f
to
0349f8a
Compare
make all && make test passed locally. |
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes #55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what #44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews Kubernetes-commit: dd9981d038012c120525c9e6df98b3beb3ef19e1
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews
Create staging folder for repo k8s.io/api, move external API used by client-go to k8s.io/api
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews
Automatic merge from submit-queue. 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>. Move core API to pkg/apis/core Fixes kubernetes/kubernetes#55304. This moves the types in pkg/api and most of pkg/api/v1 to pkg/apis/core to match the other api groups, following-up on what kubernetes/kubernetes#44784 did for the external types. It's a nearly 100% mechanical package move with a number of trivial fixups in code-generators and in tests which do string comparisons of types via reflection. **Most importantly:** - group names are unchanged - apimachinery semantics are unchanged - the outside api is unchanged. Note that some packages for helpers are left in pkg/api/v1. Splitting them into helpers which belong tightly to the api and those which are not is left to follow-ups. @kubernetes/sig-api-machinery-pr-reviews
This change is similar to kubernetes/kubernetes@f2d3220a (run root-rewrite-import-client-go-api-types, 2017-06-22, kubernetes/kubernetes#44784, v1.8.0-alpha.2) and it protects us from the eventual removal of k8s.io/client-go/pkg/api/v1 in kubernetes/kubernetes@ffe74d1f (run hack/update-staging-client-go, 2017-06-22, kubernetes/kubernetes#44784, v1.8.0-alpha.2).
This change is similar to kubernetes/kubernetes@f2d3220a (run root-rewrite-import-client-go-api-types, 2017-06-22, kubernetes/kubernetes#44784, v1.8.0-alpha.2) and it protects us from the eventual removal of k8s.io/client-go/pkg/api/v1 in kubernetes/kubernetes@ffe74d1f (run hack/update-staging-client-go, 2017-06-22, kubernetes/kubernetes#44784, v1.8.0-alpha.2).
This change is similar to kubernetes/kubernetes@f2d3220a (run root-rewrite-import-client-go-api-types, 2017-06-22, kubernetes/kubernetes#44784, v1.8.0-alpha.2) and it protects us from the eventual removal of k8s.io/client-go/pkg/api/v1 in kubernetes/kubernetes@ffe74d1f (run hack/update-staging-client-go, 2017-06-22, kubernetes/kubernetes#44784, v1.8.0-alpha.2).
This change is similar to kubernetes/kubernetes@f2d3220a (run root-rewrite-import-client-go-api-types, 2017-06-22, kubernetes/kubernetes#44784, v1.8.0-alpha.2) and it protects us from the eventual removal of k8s.io/client-go/pkg/api/v1 in kubernetes/kubernetes@ffe74d1f (run hack/update-staging-client-go, 2017-06-22, kubernetes/kubernetes#44784, v1.8.0-alpha.2).
Comments that will be addressed in followup PR:
clientv1 "k8s.io/api/core/v1"
"k8s.io/api/core/v1"
that belongs to another import sectionFix #44065
What's moved:
types.go, constants for annotation keys, methods of the types, validation, defaults, generated swagger doc
What tests are passed:
Unit tests are passed
Next steps:
...