I was trying to audit whether we had caught everything for kubernetes/kubernetes#78614
Then went down a silly rabbit hole of gee it seems like we're close to being consistent but not quite on how we alias imports when we're importing k8s api packages
cd w/kubernetes/kubernetes
ag --no-filename '^\t*[a-z0-9 ]*\"[.a-z0-9/]*v1[a-z0-9]*\"' cmd pkg staging test | sort | uniq -c
Some noise has been manually filtered out because, well, regexes.
tl;dr we're not really super consistent across k/k, with the exception of metav1
:
- some imports have no aliases
- some imports have the version as the alias
- some imports have groupversion as the alias
- some imports have 'api' in the alias
- some imports have manual aliases
1 "google.golang.org/api/container/v1"
7 "gopkg.in/gcfg.v1"
11 "k8s.io/api/admission/v1beta1"
11 "k8s.io/api/admissionregistration/v1beta1"
1 "k8s.io/api/apps/v1beta2"
3 "k8s.io/api/auditregistration/v1alpha1"
1 "k8s.io/api/authentication/v1beta1"
1 "k8s.io/api/authorization/v1beta1"
1 "k8s.io/api/batch/v1"
1 "k8s.io/api/batch/v1beta1"
1 "k8s.io/api/certificates/v1beta1"
1058 "k8s.io/api/core/v1"
5 "k8s.io/api/events/v1beta1"
3 "k8s.io/api/extensions/v1beta1"
2 "k8s.io/api/policy/v1beta1"
1 "k8s.io/api/rbac/v1alpha1"
2 "k8s.io/api/scheduling/v1"
2 "k8s.io/api/scheduling/v1alpha1"
2 "k8s.io/api/scheduling/v1beta1"
10 "k8s.io/apimachinery/pkg/apis/meta/v1"
1 "k8s.io/apimachinery/pkg/apis/meta/v1",
5 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
2 "k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1alpha1"
1 "k8s.io/apiserver/pkg/apis/apiserver/v1alpha1"
2 "k8s.io/apiserver/pkg/apis/audit/v1"
2 "k8s.io/apiserver/pkg/apis/audit/v1alpha1"
2 "k8s.io/apiserver/pkg/apis/audit/v1beta1"
3 "k8s.io/kubelet/config/v1beta1"
1 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta1"
2 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2"
2 "k8s.io/kubernetes/pkg/apis/abac/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/admission/v1beta1"
2 "k8s.io/kubernetes/pkg/apis/admissionregistration/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/apps/v1"
1 "k8s.io/kubernetes/pkg/apis/apps/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/apps/v1beta2"
1 "k8s.io/kubernetes/pkg/apis/auditregistration/v1alpha1"
1 "k8s.io/kubernetes/pkg/apis/authentication/v1"
1 "k8s.io/kubernetes/pkg/apis/authentication/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/authorization/v1"
1 "k8s.io/kubernetes/pkg/apis/authorization/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/autoscaling/v1"
1 "k8s.io/kubernetes/pkg/apis/batch/v1"
1 "k8s.io/kubernetes/pkg/apis/batch/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/certificates/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/coordination/v1"
1 "k8s.io/kubernetes/pkg/apis/coordination/v1beta1"
3 "k8s.io/kubernetes/pkg/apis/core/v1"
1 "k8s.io/kubernetes/pkg/apis/events/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1"
1 "k8s.io/kubernetes/pkg/apis/networking/v1"
1 "k8s.io/kubernetes/pkg/apis/networking/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/node/v1alpha1"
1 "k8s.io/kubernetes/pkg/apis/node/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/policy/v1beta1"
2 "k8s.io/kubernetes/pkg/apis/rbac/v1"
1 "k8s.io/kubernetes/pkg/apis/rbac/v1alpha1"
1 "k8s.io/kubernetes/pkg/apis/rbac/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/scheduling/v1"
1 "k8s.io/kubernetes/pkg/apis/scheduling/v1alpha1"
1 "k8s.io/kubernetes/pkg/apis/scheduling/v1beta1"
1 "k8s.io/kubernetes/pkg/apis/settings/v1alpha1"
1 "k8s.io/kubernetes/pkg/apis/storage/v1"
1 "k8s.io/kubernetes/pkg/apis/storage/v1alpha1"
1 "k8s.io/kubernetes/pkg/apis/storage/v1beta1"
1 "k8s.io/kubernetes/pkg/controller/apis/config/v1alpha1"
2 "k8s.io/kubernetes/pkg/kubelet/apis/podresources/v1alpha1"
2 "k8s.io/kubernetes/pkg/kubelet/apis/resourcemetrics/v1alpha1"
1 "k8s.io/kubernetes/pkg/proxy/apis/config/v1alpha1"
1 "k8s.io/kubernetes/pkg/quota/v1"
1 "k8s.io/metrics/pkg/apis/metrics/v1beta1"
12 admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
1 admissionregv1beta1 "k8s.io/api/admissionregistration/v1beta1"
1 admissionv1alpha1 "k8s.io/api/admission/v1beta1"
7 admissionv1beta1 "k8s.io/api/admission/v1beta1"
3 admissionv1beta1 "k8s.io/api/admissionregistration/v1beta1"
1 adreg "k8s.io/api/admissionregistration/v1beta1"
22 api "k8s.io/api/core/v1"
1 api "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
3 apiscorev1 "k8s.io/kubernetes/pkg/apis/core/v1"
2 apiserverapiv1alpha1 "k8s.io/apiserver/pkg/apis/apiserver/v1alpha1"
3 apiserverconfigv1 "k8s.io/apiserver/pkg/apis/config/v1"
1 apiserverv1alpha1 "k8s.io/apiserver/pkg/apis/apiserver/v1alpha1"
37 apiv1 "k8s.io/api/core/v1"
1 apiv1 "k8s.io/kubernetes/pkg/apis/core/v1"
100 apps "k8s.io/api/apps/v1"
3 apps "k8s.io/api/apps/v1beta1"
4 apps "k8s.io/api/apps/v1beta2"
1 appsV1beta2 "k8s.io/api/apps/v1beta2"
1 appsapiv1 "k8s.io/api/apps/v1"
2 appsapiv1beta1 "k8s.io/api/apps/v1beta1"
2 appsapiv1beta2 "k8s.io/api/apps/v1beta2"
1 appsconversion "k8s.io/kubernetes/pkg/apis/apps/v1"
73 appsv1 "k8s.io/api/apps/v1"
38 appsv1beta1 "k8s.io/api/apps/v1beta1"
3 appsv1beta1 "k8s.io/kubernetes/pkg/apis/apps/v1beta1"
35 appsv1beta2 "k8s.io/api/apps/v1beta2"
3 appsv1beta2 "k8s.io/kubernetes/pkg/apis/apps/v1beta2"
2 attachdetachconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/volume/attachdetach/config/v1alpha1"
7 auditregistrationv1alpha1 "k8s.io/api/auditregistration/v1alpha1"
8 auditregv1alpha1 "k8s.io/api/auditregistration/v1alpha1"
15 auditv1 "k8s.io/apiserver/pkg/apis/audit/v1"
1 auditv1alpha1 "k8s.io/api/auditregistration/v1alpha1"
2 auditv1alpha1 "k8s.io/apiserver/pkg/apis/audit/v1alpha1"
5 auditv1beta1 "k8s.io/apiserver/pkg/apis/audit/v1beta1"
1 authentication "k8s.io/api/authentication/v1beta1"
3 authenticationapi "k8s.io/api/authentication/v1"
2 authenticationapi "k8s.io/api/authentication/v1beta1"
1 authenticationapiv1 "k8s.io/api/authentication/v1"
29 authenticationv1 "k8s.io/api/authentication/v1"
8 authenticationv1beta1 "k8s.io/api/authentication/v1beta1"
3 authnv1 "k8s.io/api/authentication/v1"
3 authorization "k8s.io/api/authorization/v1beta1"
9 authorizationapi "k8s.io/api/authorization/v1"
8 authorizationapi "k8s.io/api/authorization/v1beta1"
1 authorizationapiv1 "k8s.io/api/authorization/v1"
1 authorizationapiv1beta1 "k8s.io/api/authorization/v1beta1"
9 authorizationv1 "k8s.io/api/authorization/v1"
7 authorizationv1beta1 "k8s.io/api/authorization/v1beta1"
6 authv1 "k8s.io/api/authorization/v1"
3 autoscaling "k8s.io/api/autoscaling/v1"
3 autoscalingapi "k8s.io/api/autoscaling/v1"
3 autoscalingapiv1 "k8s.io/api/autoscaling/v1"
38 autoscalingv1 "k8s.io/api/autoscaling/v1"
4 autoscalingv1 "k8s.io/kubernetes/pkg/apis/autoscaling/v1"
15 batch "k8s.io/api/batch/v1"
1 batchV1beta1 "k8s.io/api/batch/v1beta1"
2 batchapiv1 "k8s.io/api/batch/v1"
2 batchapiv1beta1 "k8s.io/api/batch/v1beta1"
45 batchv1 "k8s.io/api/batch/v1"
2 batchv1 "k8s.io/kubernetes/pkg/apis/batch/v1"
30 batchv1beta1 "k8s.io/api/batch/v1beta1"
25 cadvisorapi "github.com/google/cadvisor/info/v1"
7 cadvisorapiv1 "github.com/google/cadvisor/info/v1"
6 capi "k8s.io/api/certificates/v1beta1"
1 certapi "k8s.io/api/certificates/v1beta1"
10 certificates "k8s.io/api/certificates/v1beta1"
3 certificatesapiv1beta1 "k8s.io/api/certificates/v1beta1"
14 certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
2 certsapi "k8s.io/api/certificates/v1beta1"
34 compute "google.golang.org/api/compute/v1"
2 configv1alpha1 "k8s.io/kubernetes/pkg/controller/apis/config/v1alpha1"
1 container "google.golang.org/api/container/v1"
1 coordination "k8s.io/api/coordination/v1"
1 coordinationapiv1 "k8s.io/api/coordination/v1"
1 coordinationapiv1beta1 "k8s.io/api/coordination/v1beta1"
10 coordinationv1 "k8s.io/api/coordination/v1"
6 coordinationv1beta1 "k8s.io/api/coordination/v1beta1"
5 coordv1beta1 "k8s.io/api/coordination/v1beta1"
231 corev1 "k8s.io/api/core/v1"
14 corev1 "k8s.io/kubernetes/pkg/apis/core/v1"
1 csrsigningconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/certificates/signer/config/v1alpha1"
2 daemonconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/daemon/config/v1alpha1"
2 deploymentconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/deployment/config/v1alpha1"
2 endpointconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/endpoint/config/v1alpha1"
1 eventsapiv1beta1 "k8s.io/api/events/v1beta1"
7 eventsv1beta1 "k8s.io/api/events/v1beta1"
2 example2v1 "k8s.io/apiserver/pkg/apis/example2/v1"
15 examplev1 "k8s.io/apiserver/pkg/apis/example/v1"
10 extensions "k8s.io/api/extensions/v1beta1"
4 extensionsapiv1beta1 "k8s.io/api/extensions/v1beta1"
53 extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
3 extensionsv1beta1 "k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
1 extv1beta1 "k8s.io/api/extensions/v1beta1"
14 framework "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1"
1 ga "google.golang.org/api/compute/v1"
2 garbagecollectorconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/garbagecollector/config/v1alpha1"
1 gcfg "gopkg.in/gcfg.v1"
3 imagepolicyv1alpha1 "k8s.io/api/imagepolicy/v1alpha1"
1 info "github.com/google/cadvisor/info/v1"
2 jobconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/job/config/v1alpha1"
1 k8sv1 "k8s.io/api/core/v1"
4 kmsapi "k8s.io/apiserver/pkg/storage/value/encrypt/envelope/v1beta1"
1 kubeadmapiv1beta1 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta1"
31 kubeadmapiv1beta2 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2"
1 kubectrlmgrconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/apis/config/v1alpha1"
11 kubeletconfigv1beta1 "k8s.io/kubelet/config/v1beta1"
2 kubeletconfigv1beta1 "k8s.io/kubernetes/pkg/kubelet/apis/config/v1beta1"
1 kubeletconfigv1beta1scheme "k8s.io/kubernetes/pkg/kubelet/apis/config/v1beta1"
1 kubeproxyconfigv1alpha1scheme "k8s.io/kubernetes/pkg/proxy/apis/config/v1alpha1"
2 kubeschedulerconfigv1alpha1 "k8s.io/kubernetes/pkg/scheduler/apis/config/v1alpha1"
1 kubestats "k8s.io/kubernetes/pkg/kubelet/apis/stats/v1alpha1"
14 meta "k8s.io/apimachinery/pkg/apis/meta/v1"
1778 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
38 metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1"
1 metricsV1beta1api "k8s.io/metrics/pkg/apis/metrics/v1beta1"
4 metricsapi "k8s.io/metrics/pkg/apis/metrics/v1alpha1"
3 metricsapi "k8s.io/metrics/pkg/apis/metrics/v1beta1"
2 metricsv1alpha1 "k8s.io/metrics/pkg/apis/metrics/v1alpha1"
2 metricsv1alpha1 "k8s.io/metrics/pkg/client/clientset/versioned/typed/metrics/v1alpha1"
4 metricsv1alpha1api "k8s.io/metrics/pkg/apis/metrics/v1alpha1"
2 metricsv1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1"
2 metricsv1beta1 "k8s.io/metrics/pkg/client/clientset/versioned/typed/metrics/v1beta1"
4 metricsv1beta1api "k8s.io/metrics/pkg/apis/metrics/v1beta1"
2 namespaceconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/namespace/config/v1alpha1"
2 networkingapiv1 "k8s.io/api/networking/v1"
2 networkingapiv1beta1 "k8s.io/api/networking/v1beta1"
14 networkingv1 "k8s.io/api/networking/v1"
10 networkingv1beta1 "k8s.io/api/networking/v1beta1"
2 nodeipamconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/nodeipam/config/v1alpha1"
2 nodelifecycleconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/nodelifecycle/config/v1alpha1"
8 nodev1alpha1 "k8s.io/api/node/v1alpha1"
8 nodev1beta1 "k8s.io/api/node/v1beta1"
2 persistentvolumeconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/volume/persistentvolume/config/v1alpha1"
1 pkgauthenticationv1 "k8s.io/kubernetes/pkg/apis/authentication/v1"
1 pkgcorev1 "k8s.io/kubernetes/pkg/apis/core/v1"
8 pluginapi "k8s.io/kubernetes/pkg/kubelet/apis/deviceplugin/v1beta1"
3 pluginwatcherapi "k8s.io/kubernetes/pkg/kubelet/apis/pluginregistration/v1"
1 poautosclerconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/podautoscaler/config/v1alpha1"
1 podautoscalerconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/podautoscaler/config/v1alpha1"
2 podgcconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/podgc/config/v1alpha1"
11 podresourcesapi "k8s.io/kubernetes/pkg/kubelet/apis/podresources/v1alpha1"
42 policy "k8s.io/api/policy/v1beta1"
2 policyapiv1beta1 "k8s.io/api/policy/v1beta1"
19 policyv1beta1 "k8s.io/api/policy/v1beta1"
1 pubsub "google.golang.org/api/pubsub/v1"
14 quota "k8s.io/kubernetes/pkg/quota/v1"
17 rbac "k8s.io/api/rbac/v1"
1 rbac "k8s.io/api/rbac/v1beta1"
1 rbacapi "k8s.io/api/rbac/v1"
1 rbacapiv1 "k8s.io/api/rbac/v1"
1 rbacapiv1alpha1 "k8s.io/api/rbac/v1alpha1"
1 rbacapiv1beta1 "k8s.io/api/rbac/v1beta1"
6 rbachelper "k8s.io/kubernetes/pkg/apis/rbac/v1"
62 rbacv1 "k8s.io/api/rbac/v1"
16 rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
27 rbacv1beta1 "k8s.io/api/rbac/v1beta1"
1 rbacv1beta1helpers "k8s.io/kubernetes/pkg/apis/rbac/v1beta1"
9 rbacv1helpers "k8s.io/kubernetes/pkg/apis/rbac/v1"
6 registerapi "k8s.io/kubernetes/pkg/kubelet/apis/pluginregistration/v1"
3 registrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
2 replicasetconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/replicaset/config/v1alpha1"
2 replicationconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/replication/config/v1alpha1"
2 resourceclient "k8s.io/metrics/pkg/client/clientset/versioned/typed/metrics/v1beta1"
2 resourcequotaconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/resourcequota/config/v1alpha1"
4 schedulerapi "k8s.io/api/scheduling/v1"
2 schedulerframework "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1"
2 scheduling "k8s.io/api/scheduling/v1"
1 schedulingapiv1 "k8s.io/api/scheduling/v1"
1 schedulingapiv1 "k8s.io/kubernetes/pkg/apis/scheduling/v1"
1 schedulingapiv1alpha1 "k8s.io/kubernetes/pkg/apis/scheduling/v1alpha1"
1 schedulingapiv1beta1 "k8s.io/api/scheduling/v1beta1"
1 schedulingapiv1beta1 "k8s.io/kubernetes/pkg/apis/scheduling/v1beta1"
11 schedulingv1 "k8s.io/api/scheduling/v1"
8 schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
7 schedulingv1beta1 "k8s.io/api/scheduling/v1beta1"
2 serviceaccountconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/serviceaccount/config/v1alpha1"
4 serviceconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/service/config/v1alpha1"
1 settings "k8s.io/api/settings/v1alpha1"
1 settingsapiv1alpha1 "k8s.io/api/settings/v1alpha1"
9 settingsv1alpha1 "k8s.io/api/settings/v1alpha1"
1 signerconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/certificates/signer/config/v1alpha1"
3 siotypes "github.com/codedellemc/goscaleio/types/v1"
11 stats "k8s.io/kubernetes/pkg/kubelet/apis/stats/v1alpha1"
33 statsapi "k8s.io/kubernetes/pkg/kubelet/apis/stats/v1alpha1"
32 storage "k8s.io/api/storage/v1"
1 storage "k8s.io/api/storage/v1beta1"
3 storageV1 "k8s.io/api/storage/v1"
2 storageapiv1 "k8s.io/api/storage/v1"
2 storageapiv1alpha1 "k8s.io/api/storage/v1alpha1"
3 storageapiv1beta1 "k8s.io/api/storage/v1beta1"
1 storagebeta "k8s.io/api/storage/v1beta1"
37 storagev1 "k8s.io/api/storage/v1"
7 storagev1alpha1 "k8s.io/api/storage/v1alpha1"
15 storagev1beta1 "k8s.io/api/storage/v1beta1"
1 summary "k8s.io/kubernetes/pkg/kubelet/apis/stats/v1alpha1"
2 testapigroupv1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
1 tpuapi "google.golang.org/api/tpu/v1"
2 ttlafterfinishedconfigv1alpha1 "k8s.io/kubernetes/pkg/controller/ttlafterfinished/config/v1alpha1"
14 v1 "k8s.io/api/apps/v1"
6 v1 "k8s.io/api/authentication/v1"
6 v1 "k8s.io/api/authorization/v1"
8 v1 "k8s.io/api/autoscaling/v1"
5 v1 "k8s.io/api/batch/v1"
4 v1 "k8s.io/api/coordination/v1"
285 v1 "k8s.io/api/core/v1"
5 v1 "k8s.io/api/networking/v1"
12 v1 "k8s.io/api/rbac/v1"
5 v1 "k8s.io/api/scheduling/v1"
7 v1 "k8s.io/api/storage/v1"
354 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
9 v1 "k8s.io/kubernetes/pkg/apis/core/v1"
7 v1alpha1 "k8s.io/api/auditregistration/v1alpha1"
2 v1alpha1 "k8s.io/api/imagepolicy/v1alpha1"
7 v1alpha1 "k8s.io/api/node/v1alpha1"
15 v1alpha1 "k8s.io/api/rbac/v1alpha1"
6 v1alpha1 "k8s.io/api/scheduling/v1alpha1"
6 v1alpha1 "k8s.io/api/settings/v1alpha1"
6 v1alpha1 "k8s.io/api/storage/v1alpha1"
5 v1alpha1 "k8s.io/metrics/pkg/apis/metrics/v1alpha1"
1 v1alpha1 "k8s.io/metrics/pkg/client/clientset/versioned/typed/metrics/v1alpha1"
2 v1authenticationapi "k8s.io/api/authentication/v1"
1 v1beta1 "k8s.io/api/admission/v1beta1"
10 v1beta1 "k8s.io/api/admissionregistration/v1beta1"
14 v1beta1 "k8s.io/api/apps/v1beta1"
3 v1beta1 "k8s.io/api/authentication/v1beta1"
6 v1beta1 "k8s.io/api/authorization/v1beta1"
6 v1beta1 "k8s.io/api/batch/v1beta1"
6 v1beta1 "k8s.io/api/certificates/v1beta1"
5 v1beta1 "k8s.io/api/coordination/v1beta1"
7 v1beta1 "k8s.io/api/events/v1beta1"
24 v1beta1 "k8s.io/api/extensions/v1beta1"
5 v1beta1 "k8s.io/api/networking/v1beta1"
5 v1beta1 "k8s.io/api/node/v1beta1"
10 v1beta1 "k8s.io/api/policy/v1beta1"
15 v1beta1 "k8s.io/api/rbac/v1beta1"
6 v1beta1 "k8s.io/api/scheduling/v1beta1"
15 v1beta1 "k8s.io/api/storage/v1beta1"
2 v1beta1 "k8s.io/kubelet/config/v1beta1"
5 v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1"
1 v1beta1 "k8s.io/metrics/pkg/client/clientset/versioned/typed/metrics/v1beta1"
21 v1beta2 "k8s.io/api/apps/v1beta2"
1 v1meta "k8s.io/apimachinery/pkg/apis/meta/v1"
2 watcherapi "k8s.io/kubernetes/pkg/kubelet/apis/pluginregistration/v1"
6 import "k8s.io/api/core/v1"
1 import "k8s.io/api/extensions/v1beta1"
1 import apiv1 "k8s.io/api/core/v1"
1 import certificates "k8s.io/api/certificates/v1beta1"
1 import corev1 "k8s.io/api/core/v1"
19 import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1 import v1 "github.com/google/cadvisor/info/v1"
2 import v1 "k8s.io/api/core/v1"
1 import v1alpha1 "k8s.io/kubernetes/pkg/kubelet/apis/stats/v1alpha1"
We are closer to consistency within test/e2e. I think this is because tests are likely to interact with multiple apis, and it's useful to be explicit about which version is under test
1 "gopkg.in/gcfg.v1"
1 "k8s.io/api/admissionregistration/v1beta1"
1 "k8s.io/api/certificates/v1beta1"
101 "k8s.io/api/core/v1"
2 api "k8s.io/api/core/v1"
2 apiv1 "k8s.io/api/core/v1"
29 apps "k8s.io/api/apps/v1"
1 appsV1beta2 "k8s.io/api/apps/v1beta2"
8 appsv1 "k8s.io/api/apps/v1"
1 auditregv1alpha1 "k8s.io/api/auditregistration/v1alpha1"
2 auditv1 "k8s.io/apiserver/pkg/apis/audit/v1"
1 authenticationv1 "k8s.io/api/authentication/v1"
1 authorizationv1 "k8s.io/api/authorization/v1"
1 authorizationv1beta1 "k8s.io/api/authorization/v1beta1"
2 autoscalingv1 "k8s.io/api/autoscaling/v1"
5 batch "k8s.io/api/batch/v1"
5 batchv1 "k8s.io/api/batch/v1"
3 batchv1beta1 "k8s.io/api/batch/v1beta1"
7 compute "google.golang.org/api/compute/v1"
1 coordv1beta1 "k8s.io/api/coordination/v1beta1"
7 corev1 "k8s.io/api/core/v1"
2 extensions "k8s.io/api/extensions/v1beta1"
1 kubeletconfigv1beta1 "k8s.io/kubelet/config/v1beta1"
1 meta "k8s.io/apimachinery/pkg/apis/meta/v1"
223 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1 metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1"
1 networkingv1 "k8s.io/api/networking/v1"
4 networkingv1beta1 "k8s.io/api/networking/v1beta1"
5 policy "k8s.io/api/policy/v1beta1"
1 policyv1beta1 "k8s.io/api/policy/v1beta1"
1 pubsub "google.golang.org/api/pubsub/v1"
3 rbac "k8s.io/api/rbac/v1"
2 rbacv1 "k8s.io/api/rbac/v1"
10 rbacv1beta1 "k8s.io/api/rbac/v1beta1"
1 rbacv1beta1helpers "k8s.io/kubernetes/pkg/apis/rbac/v1beta1"
2 schedulerapi "k8s.io/api/scheduling/v1"
1 schedulingv1 "k8s.io/api/scheduling/v1"
1 settings "k8s.io/api/settings/v1alpha1"
2 stats "k8s.io/kubernetes/pkg/kubelet/apis/stats/v1alpha1"
9 storage "k8s.io/api/storage/v1"
3 storageV1 "k8s.io/api/storage/v1"
1 storagebeta "k8s.io/api/storage/v1beta1"
13 storagev1 "k8s.io/api/storage/v1"
114 v1 "k8s.io/api/core/v1"
I opened kubernetes/kubernetes#78780 which gets us here for test/e2e