Merge pull request #59842 from ixdy/update-rules_go-02-2018

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>.

 Update bazelbuild/rules_go, kubernetes/repo-infra, and gazelle dependencies

**What this PR does / why we need it**: updates our bazelbuild/rules_go dependency in order to bump everything to go1.9.4. I'm separating this effort into two separate PRs, since updating rules_go requires a large cleanup, removing an attribute from most build rules.

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 96ec3187180b9c1d722756b3ea0984ebe65424dc
This commit is contained in:
Kubernetes Publisher 2018-02-19 22:23:05 -08:00
commit 66cd9c25b2
126 changed files with 1804 additions and 843 deletions

1
BUILD
View File

@ -38,7 +38,6 @@ go_library(
go_binary(
name = "sample-controller",
embed = [":go_default_library"],
importpath = "k8s.io/sample-controller",
visibility = ["//visibility:public"],
)

374
Godeps/Godeps.json generated
View File

@ -152,751 +152,751 @@
},
{
"ImportPath": "k8s.io/api/admissionregistration/v1alpha1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/admissionregistration/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/apps/v1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/apps/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/apps/v1beta2",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/authentication/v1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/authentication/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/authorization/v1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/authorization/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/autoscaling/v1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/autoscaling/v2beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/batch/v1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/batch/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/batch/v2alpha1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/certificates/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/core/v1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/events/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/extensions/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/networking/v1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/policy/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/rbac/v1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/rbac/v1alpha1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/rbac/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/scheduling/v1alpha1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/settings/v1alpha1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/storage/v1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/storage/v1alpha1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/api/storage/v1beta1",
"Rev": "65f67c9cb59d466d2eb758ad9d5ad016eb43c2aa"
"Rev": "dce28b4fc0ad5be0a958f405ac3238a5647006f5"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "caa3b27b0fdaa84adc020cd7663afd62777ec9bd"
"Rev": "a5b9b85c0c1c962c1eb3372b3526dfe40fec768a"
},
{
"ImportPath": "k8s.io/client-go/discovery",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/discovery/fake",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/admissionregistration",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/admissionregistration/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/admissionregistration/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/apps",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/apps/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/apps/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/apps/v1beta2",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/autoscaling",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/autoscaling/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/autoscaling/v2beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/batch",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/batch/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/batch/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/batch/v2alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/certificates",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/certificates/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/core",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/core/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/events",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/events/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/extensions",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/extensions/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/internalinterfaces",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/networking",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/networking/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/policy",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/policy/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/rbac",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/rbac/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/rbac/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/rbac/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/scheduling",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/scheduling/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/settings",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/settings/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/storage",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/storage/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/storage/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/informers/storage/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/scheme",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/admissionregistration/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/apps/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/apps/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/apps/v1beta2",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authentication/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authentication/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authorization/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authorization/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/autoscaling/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/batch/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/batch/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/batch/v2alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/certificates/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/core/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/events/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/extensions/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/networking/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/policy/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/rbac/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/rbac/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/settings/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/storage/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/storage/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/storage/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/admissionregistration/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/admissionregistration/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/apps/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/apps/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/apps/v1beta2",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/autoscaling/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/autoscaling/v2beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/batch/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/batch/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/batch/v2alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/certificates/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/core/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/events/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/extensions/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/networking/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/policy/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/rbac/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/rbac/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/rbac/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/scheduling/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/settings/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/storage/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/storage/v1alpha1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/listers/storage/v1beta1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/pkg/version",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/rest",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/rest/watch",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/testing",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/auth",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/cache",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd/api",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd/api/latest",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd/api/v1",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/metrics",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/pager",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/record",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/tools/reference",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/transport",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/util/buffer",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/util/cert",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/util/flowcontrol",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/util/homedir",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/util/integer",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/util/retry",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/client-go/util/workqueue",
"Rev": "5e622f37cd6ed5eebbb179245ac94fa895577c4a"
"Rev": "8f6bac1a75631a030f29bc222697790bdbfe2dcb"
},
{
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto",

View File

@ -22,6 +22,7 @@ go_library(
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
],
)

File diff suppressed because it is too large Load Diff

View File

@ -29,6 +29,25 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
// Package-wide variables from generator "generated".
option go_package = "v1";
// BoundObjectReference is a reference to an object that a token is bound to.
message BoundObjectReference {
// Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
// +optional
optional string kind = 1;
// API version of the referent.
// +optional
optional string aPIVersion = 2;
// Name of the referent.
// +optional
optional string name = 3;
// UID of the referent.
// +optional
optional string uID = 4;
}
// ExtraValue masks the value so protobuf can generate
// +protobuf.nullable=true
// +protobuf.options.(gogoproto.goproto_stringer)=false
@ -38,6 +57,48 @@ message ExtraValue {
repeated string items = 1;
}
// TokenRequest requests a token for a given service account.
message TokenRequest {
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
optional TokenRequestSpec spec = 2;
// +optional
optional TokenRequestStatus status = 3;
}
// TokenRequestSpec contains client provided parameters of a token request.
message TokenRequestSpec {
// Audiences are the intendend audiences of the token. A recipient of a
// token must identitfy themself with an identifier in the list of
// audiences of the token, and otherwise should reject the token. A
// token issued for multiple audiences may be used to authenticate
// against any of the audiences listed but implies a high degree of
// trust between the target audiences.
repeated string audiences = 1;
// ExpirationSeconds is the requested duration of validity of the request. The
// token issuer may return a token with a different validity duration so a
// client needs to check the 'expiration' field in a response.
// +optional
optional int64 expirationSeconds = 4;
// BoundObjectRef is a reference to an object that the token will be bound to.
// The token will only be valid for as long as the bound objet exists.
// +optional
optional BoundObjectReference boundObjectRef = 3;
}
// TokenRequestStatus is the result of a token request.
message TokenRequestStatus {
// Token is the opaque bearer token.
optional string token = 1;
// ExpirationTimestamp is the time of expiration of the returned token.
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
}
// TokenReview attempts to authenticate a token to a known user.
// Note: TokenReview requests may be cached by the webhook token authenticator
// plugin in the kube-apiserver.

View File

@ -45,6 +45,7 @@ var (
func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&TokenReview{},
&TokenRequest{},
)
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil

View File

@ -20,6 +20,7 @@ import (
"fmt"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
const (
@ -105,3 +106,63 @@ type ExtraValue []string
func (t ExtraValue) String() string {
return fmt.Sprintf("%v", []string(t))
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// TokenRequest requests a token for a given service account.
type TokenRequest struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
Spec TokenRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
// +optional
Status TokenRequestStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}
// TokenRequestSpec contains client provided parameters of a token request.
type TokenRequestSpec struct {
// Audiences are the intendend audiences of the token. A recipient of a
// token must identitfy themself with an identifier in the list of
// audiences of the token, and otherwise should reject the token. A
// token issued for multiple audiences may be used to authenticate
// against any of the audiences listed but implies a high degree of
// trust between the target audiences.
Audiences []string `json:"audiences" protobuf:"bytes,1,rep,name=audiences"`
// ExpirationSeconds is the requested duration of validity of the request. The
// token issuer may return a token with a different validity duration so a
// client needs to check the 'expiration' field in a response.
// +optional
ExpirationSeconds *int64 `json:"expirationSeconds" protobuf:"varint,4,opt,name=expirationSeconds"`
// BoundObjectRef is a reference to an object that the token will be bound to.
// The token will only be valid for as long as the bound objet exists.
// +optional
BoundObjectRef *BoundObjectReference `json:"boundObjectRef" protobuf:"bytes,3,opt,name=boundObjectRef"`
}
// TokenRequestStatus is the result of a token request.
type TokenRequestStatus struct {
// Token is the opaque bearer token.
Token string `json:"token" protobuf:"bytes,1,opt,name=token"`
// ExpirationTimestamp is the time of expiration of the returned token.
ExpirationTimestamp metav1.Time `json:"expirationTimestamp" protobuf:"bytes,2,opt,name=expirationTimestamp"`
}
// BoundObjectReference is a reference to an object that a token is bound to.
type BoundObjectReference struct {
// Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
// +optional
Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"`
// API version of the referent.
// +optional
APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=aPIVersion"`
// Name of the referent.
// +optional
Name string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"`
// UID of the referent.
// +optional
UID types.UID `json:"uid,omitempty" protobuf:"bytes,4,opt,name=uID,casttype=k8s.io/apimachinery/pkg/types.UID"`
}

View File

@ -27,6 +27,47 @@ package v1
// Those methods can be generated by using hack/update-generated-swagger-docs.sh
// AUTO-GENERATED FUNCTIONS START HERE
var map_BoundObjectReference = map[string]string{
"": "BoundObjectReference is a reference to an object that a token is bound to.",
"kind": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.",
"apiVersion": "API version of the referent.",
"name": "Name of the referent.",
"uid": "UID of the referent.",
}
func (BoundObjectReference) SwaggerDoc() map[string]string {
return map_BoundObjectReference
}
var map_TokenRequest = map[string]string{
"": "TokenRequest requests a token for a given service account.",
}
func (TokenRequest) SwaggerDoc() map[string]string {
return map_TokenRequest
}
var map_TokenRequestSpec = map[string]string{
"": "TokenRequestSpec contains client provided parameters of a token request.",
"audiences": "Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.",
"expirationSeconds": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.",
"boundObjectRef": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound objet exists.",
}
func (TokenRequestSpec) SwaggerDoc() map[string]string {
return map_TokenRequestSpec
}
var map_TokenRequestStatus = map[string]string{
"": "TokenRequestStatus is the result of a token request.",
"token": "Token is the opaque bearer token.",
"expirationTimestamp": "ExpirationTimestamp is the time of expiration of the returned token.",
}
func (TokenRequestStatus) SwaggerDoc() map[string]string {
return map_TokenRequestStatus
}
var map_TokenReview = map[string]string{
"": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.",
"spec": "Spec holds information about the request being evaluated",

View File

@ -24,6 +24,107 @@ import (
runtime "k8s.io/apimachinery/pkg/runtime"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *BoundObjectReference) DeepCopyInto(out *BoundObjectReference) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BoundObjectReference.
func (in *BoundObjectReference) DeepCopy() *BoundObjectReference {
if in == nil {
return nil
}
out := new(BoundObjectReference)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TokenRequest) DeepCopyInto(out *TokenRequest) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequest.
func (in *TokenRequest) DeepCopy() *TokenRequest {
if in == nil {
return nil
}
out := new(TokenRequest)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *TokenRequest) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TokenRequestSpec) DeepCopyInto(out *TokenRequestSpec) {
*out = *in
if in.Audiences != nil {
in, out := &in.Audiences, &out.Audiences
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.ExpirationSeconds != nil {
in, out := &in.ExpirationSeconds, &out.ExpirationSeconds
if *in == nil {
*out = nil
} else {
*out = new(int64)
**out = **in
}
}
if in.BoundObjectRef != nil {
in, out := &in.BoundObjectRef, &out.BoundObjectRef
if *in == nil {
*out = nil
} else {
*out = new(BoundObjectReference)
**out = **in
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequestSpec.
func (in *TokenRequestSpec) DeepCopy() *TokenRequestSpec {
if in == nil {
return nil
}
out := new(TokenRequestSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TokenRequestStatus) DeepCopyInto(out *TokenRequestStatus) {
*out = *in
in.ExpirationTimestamp.DeepCopyInto(&out.ExpirationTimestamp)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequestStatus.
func (in *TokenRequestStatus) DeepCopy() *TokenRequestStatus {
if in == nil {
return nil
}
out := new(TokenRequestStatus)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TokenReview) DeepCopyInto(out *TokenReview) {
*out = *in

View File

@ -131,7 +131,7 @@ type KeyUsage string
const (
UsageSigning KeyUsage = "signing"
UsageDigitalSignature KeyUsage = "digital signature"
UsageContentCommittment KeyUsage = "content committment"
UsageContentCommittment KeyUsage = "content commitment"
UsageKeyEncipherment KeyUsage = "key encipherment"
UsageKeyAgreement KeyUsage = "key agreement"
UsageDataEncipherment KeyUsage = "data encipherment"

1
vendor/k8s.io/api/core/v1/BUILD generated vendored
View File

@ -13,7 +13,6 @@ go_test(
"toleration_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/api/core/v1",
)
go_library(

View File

@ -637,7 +637,7 @@ message Container {
// Describe a container image
message ContainerImage {
// Names by which this image is known.
// e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
// e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
repeated string names = 1;
// The size of the image in bytes.
@ -992,7 +992,7 @@ message EndpointsList {
// EnvFromSource represents the source of a set of ConfigMaps
message EnvFromSource {
// An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
// An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
// +optional
optional string prefix = 1;
@ -1124,12 +1124,12 @@ message EventList {
}
// EventSeries contain information on series of events, i.e. thing that was/is happening
// continously for some time.
// continuously for some time.
message EventSeries {
// Number of occurrences in this series up to the last heartbeat time
optional int32 count = 1;
// Time of the last occurence observed
// Time of the last occurrence observed
optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2;
// State of this Series: Ongoing or Finished
@ -3122,9 +3122,10 @@ message PodSpec {
// +patchStrategy=merge
repeated HostAlias hostAliases = 23;
// If specified, indicates the pod's priority. "SYSTEM" is a special keyword
// which indicates the highest priority. Any other name must be defined by
// creating a PriorityClass object with that name.
// If specified, indicates the pod's priority. "system-node-critical" and
// "system-cluster-critical" are two special keywords which indicate the
// highest priorities with the former being the highest priority. Any other
// name must be defined by creating a PriorityClass object with that name.
// If not specified, the pod priority will be default or zero if there is no
// default.
// +optional

23
vendor/k8s.io/api/core/v1/types.go generated vendored
View File

@ -657,6 +657,8 @@ type PersistentVolumeClaimConditionType string
const (
// PersistentVolumeClaimResizing - a user trigger resize of pvc has been started
PersistentVolumeClaimResizing PersistentVolumeClaimConditionType = "Resizing"
// PersistentVolumeClaimFileSystemResizePending - controller resize is finished and a file system resize is pending on node
PersistentVolumeClaimFileSystemResizePending PersistentVolumeClaimConditionType = "FileSystemResizePending"
)
// PersistentVolumeClaimCondition contails details about state of pvc
@ -1899,7 +1901,7 @@ type SecretKeySelector struct {
// EnvFromSource represents the source of a set of ConfigMaps
type EnvFromSource struct {
// An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
// An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
// +optional
Prefix string `json:"prefix,omitempty" protobuf:"bytes,1,opt,name=prefix"`
// The ConfigMap to select from
@ -2885,9 +2887,10 @@ type PodSpec struct {
// +patchMergeKey=ip
// +patchStrategy=merge
HostAliases []HostAlias `json:"hostAliases,omitempty" patchStrategy:"merge" patchMergeKey:"ip" protobuf:"bytes,23,rep,name=hostAliases"`
// If specified, indicates the pod's priority. "SYSTEM" is a special keyword
// which indicates the highest priority. Any other name must be defined by
// creating a PriorityClass object with that name.
// If specified, indicates the pod's priority. "system-node-critical" and
// "system-cluster-critical" are two special keywords which indicate the
// highest priorities with the former being the highest priority. Any other
// name must be defined by creating a PriorityClass object with that name.
// If not specified, the pod priority will be default or zero if there is no
// default.
// +optional
@ -3925,7 +3928,7 @@ type PodSignature struct {
// Describe a container image
type ContainerImage struct {
// Names by which this image is known.
// e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
// e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
Names []string `json:"names" protobuf:"bytes,1,rep,name=names"`
// The size of the image in bytes.
// +optional
@ -3959,10 +3962,12 @@ const (
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodePIDPressure means the kubelet is under pressure due to insufficient available PID.
NodePIDPressure NodeConditionType = "PIDPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
// NodeConfigOK indicates whether the kubelet is correctly configured
NodeConfigOK NodeConditionType = "ConfigOK"
// NodeKubeletConfigOk indicates whether the kubelet is correctly configured
NodeKubeletConfigOk NodeConditionType = "KubeletConfigOk"
)
// NodeCondition contains condition information for a node.
@ -4580,11 +4585,11 @@ type Event struct {
}
// EventSeries contain information on series of events, i.e. thing that was/is happening
// continously for some time.
// continuously for some time.
type EventSeries struct {
// Number of occurrences in this series up to the last heartbeat time
Count int32 `json:"count,omitempty" protobuf:"varint,1,name=count"`
// Time of the last occurence observed
// Time of the last occurrence observed
LastObservedTime metav1.MicroTime `json:"lastObservedTime,omitempty" protobuf:"bytes,2,name=lastObservedTime"`
// State of this Series: Ongoing or Finished
State EventSeriesState `json:"state,omitempty" protobuf:"bytes,3,name=state"`

View File

@ -310,7 +310,7 @@ func (Container) SwaggerDoc() map[string]string {
var map_ContainerImage = map[string]string{
"": "Describe a container image",
"names": "Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"names": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"sizeBytes": "The size of the image in bytes.",
}
@ -510,7 +510,7 @@ func (EndpointsList) SwaggerDoc() map[string]string {
var map_EnvFromSource = map[string]string{
"": "EnvFromSource represents the source of a set of ConfigMaps",
"prefix": "An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
"prefix": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
"configMapRef": "The ConfigMap to select from",
"secretRef": "The Secret to select from",
}
@ -576,9 +576,9 @@ func (EventList) SwaggerDoc() map[string]string {
}
var map_EventSeries = map[string]string{
"": "EventSeries contain information on series of events, i.e. thing that was/is happening continously for some time.",
"": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.",
"count": "Number of occurrences in this series up to the last heartbeat time",
"lastObservedTime": "Time of the last occurence observed",
"lastObservedTime": "Time of the last occurrence observed",
"state": "State of this Series: Ongoing or Finished",
}
@ -1513,7 +1513,7 @@ var map_PodSpec = map[string]string{
"schedulerName": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.",
"tolerations": "If specified, the pod's tolerations.",
"hostAliases": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.",
"priorityClassName": "If specified, indicates the pod's priority. \"SYSTEM\" is a special keyword which indicates the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.",
"priorityClassName": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.",
"priority": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.",
"dnsConfig": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. This is an alpha feature introduced in v1.9 and CustomPodDNS feature gate must be enabled to use it.",
}

View File

@ -108,7 +108,7 @@ message EventList {
}
// EventSeries contain information on series of events, i.e. thing that was/is happening
// continously for some time.
// continuously for some time.
message EventSeries {
// Number of occurrences in this series up to the last heartbeat time
optional int32 count = 1;

View File

@ -89,7 +89,7 @@ type Event struct {
}
// EventSeries contain information on series of events, i.e. thing that was/is happening
// continously for some time.
// continuously for some time.
type EventSeries struct {
// Number of occurrences in this series up to the last heartbeat time
Count int32 `json:"count" protobuf:"varint,1,opt,name=count"`

View File

@ -60,7 +60,7 @@ func (EventList) SwaggerDoc() map[string]string {
}
var map_EventSeries = map[string]string{
"": "EventSeries contain information on series of events, i.e. thing that was/is happening continously for some time.",
"": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.",
"count": "Number of occurrences in this series up to the last heartbeat time",
"lastObservedTime": "Time when last Event from the series was seen before last heartbeat.",
"state": "Information whether this series is ongoing or finished.",

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["errors_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/api/errors",
deps = [
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",

View File

@ -16,7 +16,6 @@ reviewers:
- janetkuo
- tallclair
- eparis
- timothysc
- dims
- hongchaodeng
- krousey

View File

@ -15,7 +15,6 @@ go_test(
"restmapper_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/api/meta",
deps = [
"//vendor/github.com/google/gofuzz:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",

View File

@ -16,7 +16,6 @@ go_test(
"scale_int_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/api/resource",
deps = [
"//vendor/github.com/google/gofuzz:go_default_library",
"//vendor/github.com/spf13/pflag:go_default_library",
@ -47,7 +46,6 @@ go_library(
go_test(
name = "go_default_xtest",
srcs = ["quantity_example_test.go"],
importpath = "k8s.io/apimachinery/pkg/api/resource_test",
deps = ["//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library"],
)

View File

@ -9,7 +9,6 @@ reviewers:
- janetkuo
- tallclair
- eparis
- timothysc
- jbeda
- xiang90
- mbohlool

View File

@ -13,7 +13,6 @@ go_test(
"roundtrip_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/apis/meta/internalversion",
deps = [
"//vendor/k8s.io/apimachinery/pkg/api/testing/roundtrip:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/fuzzer:go_default_library",

View File

@ -15,5 +15,6 @@ limitations under the License.
*/
// +k8s:deepcopy-gen=package
// +k8s:conversion-gen=k8s.io/apimachinery/pkg/apis/meta/v1
package internalversion

View File

@ -1,7 +1,7 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -21,10 +21,11 @@ limitations under the License.
package internalversion
import (
unsafe "unsafe"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
unsafe "unsafe"
)
func init() {
@ -53,7 +54,7 @@ func autoConvert_internalversion_List_To_v1_List(in *List, out *v1.List, s conve
}
}
} else {
out.Items = make([]runtime.RawExtension, 0)
out.Items = nil
}
return nil
}
@ -95,6 +96,8 @@ func autoConvert_internalversion_ListOptions_To_v1_ListOptions(in *ListOptions,
out.Watch = in.Watch
out.ResourceVersion = in.ResourceVersion
out.TimeoutSeconds = (*int64)(unsafe.Pointer(in.TimeoutSeconds))
out.Limit = in.Limit
out.Continue = in.Continue
return nil
}
@ -109,5 +112,7 @@ func autoConvert_v1_ListOptions_To_internalversion_ListOptions(in *v1.ListOption
out.Watch = in.Watch
out.ResourceVersion = in.ResourceVersion
out.TimeoutSeconds = (*int64)(unsafe.Pointer(in.TimeoutSeconds))
out.Limit = in.Limit
out.Continue = in.Continue
return nil
}

View File

@ -19,7 +19,6 @@ go_test(
"types_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/apis/meta/v1",
deps = [
"//vendor/github.com/ghodss/yaml:go_default_library",
"//vendor/github.com/json-iterator/go:go_default_library",
@ -95,7 +94,6 @@ filegroup(
go_test(
name = "go_default_xtest",
srcs = ["conversion_test.go"],
importpath = "k8s.io/apimachinery/pkg/apis/meta/v1_test",
deps = [
"//vendor/k8s.io/apimachinery/pkg/api/equality:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",

View File

@ -16,7 +16,6 @@ reviewers:
- janetkuo
- justinsb
- ncdc
- timothysc
- soltysh
- dims
- madhusudancs

View File

@ -375,6 +375,7 @@ message ListOptions {
optional string resourceVersion = 4;
// Timeout for the list/watch call.
// This limits the duration of the call, regardless of any activity or inactivity.
// +optional
optional int64 timeoutSeconds = 5;

View File

@ -25,33 +25,13 @@ func CloneSelectorAndAddLabel(selector *LabelSelector, labelKey, labelValue stri
}
// Clone.
newSelector := new(LabelSelector)
newSelector := selector.DeepCopy()
// TODO(madhusudancs): Check if you can use deepCopy_extensions_LabelSelector here.
if newSelector.MatchLabels == nil {
newSelector.MatchLabels = make(map[string]string)
if selector.MatchLabels != nil {
for key, val := range selector.MatchLabels {
newSelector.MatchLabels[key] = val
}
}
newSelector.MatchLabels[labelKey] = labelValue
if selector.MatchExpressions != nil {
newMExps := make([]LabelSelectorRequirement, len(selector.MatchExpressions))
for i, me := range selector.MatchExpressions {
newMExps[i].Key = me.Key
newMExps[i].Operator = me.Operator
if me.Values != nil {
newMExps[i].Values = make([]string, len(me.Values))
copy(newMExps[i].Values, me.Values)
} else {
newMExps[i].Values = nil
}
}
newSelector.MatchExpressions = newMExps
} else {
newSelector.MatchExpressions = nil
}
newSelector.MatchLabels[labelKey] = labelValue
return newSelector
}

View File

@ -342,6 +342,7 @@ type ListOptions struct {
// +optional
ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,4,opt,name=resourceVersion"`
// Timeout for the list/watch call.
// This limits the duration of the call, regardless of any activity or inactivity.
// +optional
TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty" protobuf:"varint,5,opt,name=timeoutSeconds"`

View File

@ -195,7 +195,7 @@ var map_ListOptions = map[string]string{
"includeUninitialized": "If true, partially initialized resources are included in the response.",
"watch": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
"resourceVersion": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.",
"timeoutSeconds": "Timeout for the list/watch call.",
"timeoutSeconds": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
"limit": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
"continue": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
}

View File

@ -13,7 +13,6 @@ go_test(
"unstructured_list_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
deps = [
"//vendor/github.com/stretchr/testify/assert:go_default_library",
"//vendor/github.com/stretchr/testify/require:go_default_library",

View File

@ -13,7 +13,6 @@ go_test(
"helper_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/conversion",
deps = [
"//vendor/github.com/google/gofuzz:go_default_library",
"//vendor/github.com/spf13/pflag:go_default_library",

View File

@ -18,7 +18,6 @@ go_library(
go_test(
name = "go_default_xtest",
srcs = ["convert_test.go"],
importpath = "k8s.io/apimachinery/pkg/conversion/queryparams_test",
deps = [
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion/queryparams:go_default_library",

View File

@ -13,7 +13,6 @@ go_test(
"selector_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/fields",
)
go_library(

View File

@ -396,7 +396,7 @@ const (
var termOperators = []string{notEqualOperator, doubleEqualOperator, equalOperator}
// splitTerm returns the lhs, operator, and rhs parsed from the given term, along with an indicator of whether the parse was successful.
// no escaping of special characters is supported in the lhs value, so the first occurance of a recognized operator is used as the split point.
// no escaping of special characters is supported in the lhs value, so the first occurrence of a recognized operator is used as the split point.
// the literal rhs is returned, and the caller is responsible for applying any desired unescaping.
func splitTerm(term string) (lhs, op, rhs string, ok bool) {
for i := range term {

View File

@ -13,7 +13,6 @@ go_test(
"selector_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/labels",
deps = [
"//vendor/k8s.io/apimachinery/pkg/selection:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["swagger_doc_generator_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/runtime",
)
go_library(
@ -57,7 +56,6 @@ go_test(
"extension_test.go",
"scheme_test.go",
],
importpath = "k8s.io/apimachinery/pkg/runtime_test",
deps = [
"//vendor/github.com/google/gofuzz:go_default_library",
"//vendor/github.com/spf13/pflag:go_default_library",

View File

@ -281,7 +281,7 @@ func (disabledGroupVersioner) KindForGroupVersionKinds(kinds []schema.GroupVersi
// GroupVersioners implements GroupVersioner and resolves to the first exact match for any kind.
type GroupVersioners []GroupVersioner
// KindForGroupVersionKinds returns the first match of any of the group versioners, or false if no match occured.
// KindForGroupVersionKinds returns the first match of any of the group versioners, or false if no match occurred.
func (gvs GroupVersioners) KindForGroupVersionKinds(kinds []schema.GroupVersionKind) (schema.GroupVersionKind, bool) {
for _, gv := range gvs {
target, ok := gv.KindForGroupVersionKinds(kinds)

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["group_version_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/runtime/schema",
)
go_library(

View File

@ -36,6 +36,21 @@ func ParseResourceArg(arg string) (*GroupVersionResource, GroupResource) {
return gvr, ParseGroupResource(arg)
}
// ParseKindArg takes the common style of string which may be either `Kind.group.com` or `Kind.version.group.com`
// and parses it out into both possibilities. This code takes no responsibility for knowing which representation was intended
// but with a knowledge of all GroupKinds, calling code can take a very good guess. If there are only two segments, then
// `*GroupVersionResource` is nil.
// `Kind.group.com` -> `group=com, version=group, kind=Kind` and `group=group.com, kind=Kind`
func ParseKindArg(arg string) (*GroupVersionKind, GroupKind) {
var gvk *GroupVersionKind
if strings.Count(arg, ".") >= 2 {
s := strings.SplitN(arg, ".", 3)
gvk = &GroupVersionKind{Group: s[2], Version: s[1], Kind: s[0]}
}
return gvk, ParseGroupKind(arg)
}
// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying
// concepts during lookup stages without having partially valid types
type GroupResource struct {
@ -58,6 +73,15 @@ func (gr *GroupResource) String() string {
return gr.Resource + "." + gr.Group
}
func ParseGroupKind(gk string) GroupKind {
i := strings.Index(gk, ".")
if i == -1 {
return GroupKind{Kind: gk}
}
return GroupKind{Group: gk[i+1:], Kind: gk[:i]}
}
// ParseGroupResource turns "resource.group" string into a GroupResource struct. Empty strings are allowed
// for each field.
func ParseGroupResource(gr string) GroupResource {

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["codec_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/runtime/serializer",
deps = [
"//vendor/github.com/ghodss/yaml:go_default_library",
"//vendor/github.com/google/gofuzz:go_default_library",

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["meta_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/runtime/serializer/json",
)
go_library(
@ -34,7 +33,6 @@ go_library(
go_test(
name = "go_default_xtest",
srcs = ["json_test.go"],
importpath = "k8s.io/apimachinery/pkg/runtime/serializer/json_test",
deps = [
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["streaming_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
deps = [
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["versioning_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
deps = [
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",

View File

@ -13,7 +13,6 @@ go_test(
"lruexpirecache_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/cache",
deps = [
"//vendor/github.com/golang/groupcache/lru:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/clock:go_default_library",

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["clock_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/clock",
)
go_library(

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["diff_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/diff",
)
go_library(

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["errors_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/errors",
)
go_library(

View File

@ -21,7 +21,7 @@ import (
"fmt"
)
// MessageCountMap contains occurance for each error message.
// MessageCountMap contains occurrence for each error message.
type MessageCountMap map[string]int
// Aggregate represents an object that contains multiple errors, but does not

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["framer_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/framer",
)
go_library(

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["intstr_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/intstr",
deps = ["//vendor/github.com/ghodss/yaml:go_default_library"],
)

View File

@ -16,7 +16,6 @@ go_test(
name = "go_default_test",
srcs = ["json_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/json",
)
filegroup(

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["util_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/mergepatch",
)
go_library(

View File

@ -16,7 +16,6 @@ go_test(
"util_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/net",
deps = ["//vendor/github.com/spf13/pflag:go_default_library"],
)

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["runtime_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/runtime",
)
go_library(

View File

@ -43,7 +43,7 @@ var PanicHandlers = []func(interface{}){logPanic}
// TODO: remove this function. We are switching to a world where it's safe for
// apiserver to panic, since it will be restarted by kubelet. At the beginning
// of the Kubernetes project, nothing was going to restart apiserver and so
// catching panics was important. But it's actually much simpler for montoring
// catching panics was important. But it's actually much simpler for monitoring
// software if we just exit when an unexpected panic happens.
func HandleCrash(additionalHandlers ...func(interface{})) {
if r := recover(); r != nil {

View File

@ -52,7 +52,6 @@ go_test(
name = "go_default_test",
srcs = ["set_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/sets",
)
filegroup(

View File

@ -14,7 +14,6 @@ go_test(
"testdata/swagger-precision-item.json",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/strategicpatch",
deps = [
"//vendor/github.com/davecgh/go-spew/spew:go_default_library",
"//vendor/github.com/ghodss/yaml:go_default_library",

View File

@ -423,7 +423,7 @@ func normalizeElementOrder(patch, serverOnly, patchOrder, serverOrder []interfac
// scan from the place of last insertion in `right` to the end of `right`,
// the place is before the first item that is greater than the item we want to insert.
// example usage: using server-only items as left and patch items as right. We insert server-only items
// to patch list. We use the order of live object as record for comparision.
// to patch list. We use the order of live object as record for comparison.
func mergeSortedSlice(left, right, serverOrder []interface{}, mergeKey string, kind reflect.Kind) []interface{} {
// Returns if l is less than r, and if both have been found.
// If l and r both present and l is in front of r, l is less than r.
@ -2109,7 +2109,7 @@ func sliceTypeAssertion(original, patch interface{}) ([]interface{}, []interface
}
// extractRetainKeysPatchStrategy process patch strategy, which is a string may contains multiple
// patch strategies seperated by ",". It returns a boolean var indicating if it has
// patch strategies separated by ",". It returns a boolean var indicating if it has
// retainKeys strategies and a string for the other strategy.
func extractRetainKeysPatchStrategy(strategies []string) (bool, string, error) {
switch len(strategies) {

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["validation_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/validation",
deps = ["//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library"],
)

View File

@ -13,7 +13,6 @@ go_test(
"path_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/validation/field",
)
go_library(

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["wait_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/wait",
deps = ["//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library"],
)

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["decoder_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/yaml",
)
go_library(

View File

@ -36,7 +36,6 @@ go_test(
"streamwatcher_test.go",
"watch_test.go",
],
importpath = "k8s.io/apimachinery/pkg/watch_test",
deps = [
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
@ -49,7 +48,6 @@ go_test(
name = "go_default_test",
srcs = ["until_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/watch",
deps = [
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",

View File

@ -16,7 +16,6 @@ go_test(
name = "go_default_test",
srcs = ["fields_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/third_party/forked/golang/json",
)
filegroup(

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["deep_equal_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/third_party/forked/golang/reflect",
)
go_library(

View File

@ -39,7 +39,6 @@ go_test(
"helper_blackbox_test.go",
"restmapper_test.go",
],
importpath = "k8s.io/client-go/discovery_test",
deps = [
"//vendor/github.com/gogo/protobuf/proto:go_default_library",
"//vendor/github.com/googleapis/gnostic/OpenAPIv2:go_default_library",

View File

@ -37,7 +37,6 @@ filegroup(
go_test(
name = "go_default_xtest",
srcs = ["discovery_test.go"],
importpath = "k8s.io/client-go/discovery/fake_test",
deps = [
"//vendor/k8s.io/apimachinery/pkg/version:go_default_library",
"//vendor/k8s.io/client-go/discovery/fake:go_default_library",

View File

@ -18,6 +18,7 @@ package discovery
import (
"fmt"
"strings"
"sync"
"k8s.io/apimachinery/pkg/api/meta"
@ -108,6 +109,7 @@ func NewRESTMapper(groupResources []*APIGroupResources, versionInterfaces meta.V
plural := gv.WithResource(resource.Name)
singular := gv.WithResource(resource.SingularName)
versionMapper.AddSpecific(gv.WithKind(resource.Kind), plural, singular, scope)
versionMapper.AddSpecific(gv.WithKind(strings.ToLower(resource.Kind)), plural, singular, scope)
// TODO this is producing unsafe guesses that don't actually work, but it matches previous behavior
versionMapper.Add(gv.WithKind(resource.Kind+"List"), scope)
}

View File

@ -36,7 +36,6 @@ go_test(
name = "go_default_test",
srcs = ["daemonset_expansion_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/listers/extensions/v1beta1",
deps = [
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/api/extensions/v1beta1:go_default_library",

1
vendor/k8s.io/client-go/rest/BUILD generated vendored
View File

@ -17,7 +17,6 @@ go_test(
"urlbackoff_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/rest",
deps = [
"//vendor/github.com/golang/glog:go_default_library",
"//vendor/github.com/google/gofuzz:go_default_library",

View File

@ -222,9 +222,9 @@ func (c *RESTClient) Verb(verb string) *Request {
backoff := c.createBackoffMgr()
if c.Client == nil {
return NewRequest(nil, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle)
return NewRequest(nil, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle, 0)
}
return NewRequest(c.Client, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle)
return NewRequest(c.Client, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle, c.Client.Timeout)
}
// Post begins a POST request. Short for c.Verb("POST").

View File

@ -112,7 +112,7 @@ type Request struct {
}
// NewRequest creates a new request helper object for accessing runtime.Objects on a server.
func NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPath string, content ContentConfig, serializers Serializers, backoff BackoffManager, throttle flowcontrol.RateLimiter) *Request {
func NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPath string, content ContentConfig, serializers Serializers, backoff BackoffManager, throttle flowcontrol.RateLimiter, timeout time.Duration) *Request {
if backoff == nil {
glog.V(2).Infof("Not implementing request backoff strategy.")
backoff = &NoBackoff{}
@ -131,6 +131,7 @@ func NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPa
serializers: serializers,
backoffMgr: backoff,
throttle: throttle,
timeout: timeout,
}
switch {
case len(content.AcceptContentTypes) > 0:

View File

@ -27,7 +27,6 @@ go_test(
"decoder_test.go",
"encoder_test.go",
],
importpath = "k8s.io/client-go/rest/watch_test",
deps = [
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/equality:go_default_library",

View File

@ -35,7 +35,6 @@ go_test(
"fixture_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/testing",
deps = [
"//vendor/github.com/stretchr/testify/assert:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library",

View File

@ -16,7 +16,6 @@ go_library(
go_test(
name = "go_default_xtest",
srcs = ["clientauth_test.go"],
importpath = "k8s.io/client-go/tools/auth_test",
deps = ["//vendor/k8s.io/client-go/tools/auth:go_default_library"],
)

View File

@ -23,7 +23,6 @@ go_test(
"undelta_store_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/tools/cache",
race = "off",
deps = [
"//vendor/github.com/google/gofuzz:go_default_library",

View File

@ -288,7 +288,7 @@ func NewInformer(
// This will hold incoming changes. Note how we pass clientState in as a
// KeyLister, that way resync operations will result in the correct set
// of update/delete deltas.
fifo := NewDeltaFIFO(MetaNamespaceKeyFunc, nil, clientState)
fifo := NewDeltaFIFO(MetaNamespaceKeyFunc, clientState)
cfg := &Config{
Queue: fifo,
@ -355,7 +355,7 @@ func NewIndexerInformer(
// This will hold incoming changes. Note how we pass clientState in as a
// KeyLister, that way resync operations will result in the correct set
// of update/delete deltas.
fifo := NewDeltaFIFO(MetaNamespaceKeyFunc, nil, clientState)
fifo := NewDeltaFIFO(MetaNamespaceKeyFunc, clientState)
cfg := &Config{
Queue: fifo,

View File

@ -31,11 +31,6 @@ import (
// keyFunc is used to figure out what key an object should have. (It's
// exposed in the returned DeltaFIFO's KeyOf() method, with bonus features.)
//
// 'compressor' may compress as many or as few items as it wants
// (including returning an empty slice), but it should do what it
// does quickly since it is called while the queue is locked.
// 'compressor' may be nil if you don't want any delta compression.
//
// 'keyLister' is expected to return a list of keys that the consumer of
// this queue "knows about". It is used to decide which items are missing
// when Replace() is called; 'Deleted' deltas are produced for these items.
@ -48,12 +43,11 @@ import (
// fix.
//
// Also see the comment on DeltaFIFO.
func NewDeltaFIFO(keyFunc KeyFunc, compressor DeltaCompressor, knownObjects KeyListerGetter) *DeltaFIFO {
func NewDeltaFIFO(keyFunc KeyFunc, knownObjects KeyListerGetter) *DeltaFIFO {
f := &DeltaFIFO{
items: map[string]Deltas{},
queue: []string{},
keyFunc: keyFunc,
deltaCompressor: compressor,
knownObjects: knownObjects,
}
f.cond.L = &f.lock
@ -86,9 +80,6 @@ func NewDeltaFIFO(keyFunc KeyFunc, compressor DeltaCompressor, knownObjects KeyL
// items have been deleted when Replace() or Delete() are called. The deleted
// object will be included in the DeleteFinalStateUnknown markers. These objects
// could be stale.
//
// You may provide a function to compress deltas (e.g., represent a
// series of Updates as a single Update).
type DeltaFIFO struct {
// lock/cond protects access to 'items' and 'queue'.
lock sync.RWMutex
@ -110,10 +101,6 @@ type DeltaFIFO struct {
// insertion and retrieval, and should be deterministic.
keyFunc KeyFunc
// deltaCompressor tells us how to combine two or more
// deltas. It may be nil.
deltaCompressor DeltaCompressor
// knownObjects list keys that are "known", for the
// purpose of figuring out which items have been deleted
// when Replace() or Delete() is called.
@ -133,7 +120,6 @@ var (
var (
// ErrZeroLengthDeltasObject is returned in a KeyError if a Deltas
// object with zero length is encountered (should be impossible,
// even if such an object is accidentally produced by a DeltaCompressor--
// but included for completeness).
ErrZeroLengthDeltasObject = errors.New("0 length Deltas object; can't get key")
)
@ -305,8 +291,8 @@ func (f *DeltaFIFO) willObjectBeDeletedLocked(id string) bool {
return len(deltas) > 0 && deltas[len(deltas)-1].Type == Deleted
}
// queueActionLocked appends to the delta list for the object, calling
// f.deltaCompressor if needed. Caller must lock first.
// queueActionLocked appends to the delta list for the object.
// Caller must lock first.
func (f *DeltaFIFO) queueActionLocked(actionType DeltaType, obj interface{}) error {
id, err := f.KeyOf(obj)
if err != nil {
@ -322,9 +308,6 @@ func (f *DeltaFIFO) queueActionLocked(actionType DeltaType, obj interface{}) err
newDeltas := append(f.items[id], Delta{actionType, obj})
newDeltas = dedupDeltas(newDeltas)
if f.deltaCompressor != nil {
newDeltas = f.deltaCompressor.Compress(newDeltas)
}
_, exists := f.items[id]
if len(newDeltas) > 0 {
@ -334,8 +317,7 @@ func (f *DeltaFIFO) queueActionLocked(actionType DeltaType, obj interface{}) err
f.items[id] = newDeltas
f.cond.Broadcast()
} else if exists {
// The compression step removed all deltas, so
// we need to remove this from our map (extra items
// We need to remove this from our map (extra items
// in the queue are ignored if they are not in the
// map).
delete(f.items, id)
@ -355,8 +337,8 @@ func (f *DeltaFIFO) List() []interface{} {
func (f *DeltaFIFO) listLocked() []interface{} {
list := make([]interface{}, 0, len(f.items))
for _, item := range f.items {
// Copy item's slice so operations on this slice (delta
// compression) won't interfere with the object we return.
// Copy item's slice so operations on this slice
// won't interfere with the object we return.
item = copyDeltas(item)
list = append(list, item.Newest().Object)
}
@ -394,8 +376,8 @@ func (f *DeltaFIFO) GetByKey(key string) (item interface{}, exists bool, err err
defer f.lock.RUnlock()
d, exists := f.items[key]
if exists {
// Copy item's slice so operations on this slice (delta
// compression) won't interfere with the object we return.
// Copy item's slice so operations on this slice
// won't interfere with the object we return.
d = copyDeltas(d)
}
return d, exists, nil
@ -603,23 +585,6 @@ type KeyGetter interface {
GetByKey(key string) (interface{}, bool, error)
}
// DeltaCompressor is an algorithm that removes redundant changes.
type DeltaCompressor interface {
Compress(Deltas) Deltas
}
// DeltaCompressorFunc should remove redundant changes; but changes that
// are redundant depend on one's desired semantics, so this is an
// injectable function.
//
// DeltaCompressorFunc adapts a raw function to be a DeltaCompressor.
type DeltaCompressorFunc func(Deltas) Deltas
// Compress just calls dc.
func (dc DeltaCompressorFunc) Compress(d Deltas) Deltas {
return dc(d)
}
// DeltaType is the type of a change (addition, deletion, etc)
type DeltaType string
@ -668,7 +633,7 @@ func (d Deltas) Newest() *Delta {
// copyDeltas returns a shallow copy of d; that is, it copies the slice but not
// the objects in the slice. This allows Get/List to return an object that we
// know won't be clobbered by a subsequent call to a delta compressor.
// know won't be clobbered by a subsequent modifications.
func copyDeltas(d Deltas) Deltas {
d2 := make(Deltas, len(d))
copy(d2, d)

View File

@ -189,7 +189,7 @@ type deleteNotification struct {
func (s *sharedIndexInformer) Run(stopCh <-chan struct{}) {
defer utilruntime.HandleCrash()
fifo := NewDeltaFIFO(MetaNamespaceKeyFunc, nil, s.indexer)
fifo := NewDeltaFIFO(MetaNamespaceKeyFunc, s.indexer)
cfg := &Config{
Queue: fifo,
@ -335,7 +335,7 @@ func (s *sharedIndexInformer) AddEventHandlerWithResyncPeriod(handler ResourceEv
s.blockDeltas.Lock()
defer s.blockDeltas.Unlock()
s.processor.addAndStartListener(listener)
s.processor.addListener(listener)
for _, item := range s.indexer.List() {
listener.add(addNotification{newObj: item})
}
@ -373,6 +373,7 @@ func (s *sharedIndexInformer) HandleDeltas(obj interface{}) error {
}
type sharedProcessor struct {
listenersStarted bool
listenersLock sync.RWMutex
listeners []*processorListener
syncingListeners []*processorListener
@ -380,20 +381,15 @@ type sharedProcessor struct {
wg wait.Group
}
func (p *sharedProcessor) addAndStartListener(listener *processorListener) {
p.listenersLock.Lock()
defer p.listenersLock.Unlock()
p.addListenerLocked(listener)
p.wg.Start(listener.run)
p.wg.Start(listener.pop)
}
func (p *sharedProcessor) addListener(listener *processorListener) {
p.listenersLock.Lock()
defer p.listenersLock.Unlock()
p.addListenerLocked(listener)
if p.listenersStarted {
p.wg.Start(listener.run)
p.wg.Start(listener.pop)
}
}
func (p *sharedProcessor) addListenerLocked(listener *processorListener) {
@ -424,6 +420,7 @@ func (p *sharedProcessor) run(stopCh <-chan struct{}) {
p.wg.Start(listener.run)
p.wg.Start(listener.pop)
}
p.listenersStarted = true
}()
<-stopCh
p.listenersLock.RLock()

View File

@ -16,7 +16,6 @@ go_test(
"validation_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/tools/clientcmd",
deps = [
"//vendor/github.com/ghodss/yaml:go_default_library",
"//vendor/github.com/imdario/mergo:go_default_library",

View File

@ -13,7 +13,6 @@ go_test(
"types_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/tools/clientcmd/api",
deps = ["//vendor/github.com/ghodss/yaml:go_default_library"],
)

View File

@ -107,7 +107,7 @@ func (config *DirectClientConfig) RawConfig() (clientcmdapi.Config, error) {
// ClientConfig implements ClientConfig
func (config *DirectClientConfig) ClientConfig() (*restclient.Config, error) {
// check that getAuthInfo, getContext, and getCluster do not return an error.
// Do this before checking if the curent config is usable in the event that an
// Do this before checking if the current config is usable in the event that an
// AuthInfo, Context, or Cluster config with user-defined names are not found.
// This provides a user with the immediate cause for error if one is found
configAuthInfo, err := config.getAuthInfo()

View File

@ -38,7 +38,6 @@ go_test(
name = "go_default_test",
srcs = ["pager_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/tools/pager",
deps = [
"//vendor/golang.org/x/net/context:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",

View File

@ -13,7 +13,6 @@ go_test(
"events_cache_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/tools/record",
deps = [
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",

View File

@ -14,7 +14,6 @@ go_test(
"transport_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/transport",
)
go_library(

View File

@ -11,7 +11,6 @@ go_test(
name = "go_default_test",
srcs = ["ring_growing_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/util/buffer",
deps = ["//vendor/github.com/stretchr/testify/assert:go_default_library"],
)

View File

@ -14,7 +14,6 @@ go_test(
],
data = glob(["testdata/**"]),
embed = [":go_default_library"],
importpath = "k8s.io/client-go/util/cert",
)
go_library(

View File

@ -13,7 +13,6 @@ go_test(
"throttle_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/util/flowcontrol",
deps = ["//vendor/k8s.io/apimachinery/pkg/util/clock:go_default_library"],
)

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["integer_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/util/integer",
)
go_library(

View File

@ -20,7 +20,6 @@ go_test(
name = "go_default_test",
srcs = ["util_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/util/retry",
deps = [
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",

View File

@ -14,7 +14,6 @@ go_test(
"rate_limitting_queue_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/client-go/util/workqueue",
deps = [
"//vendor/k8s.io/apimachinery/pkg/util/clock:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library",
@ -43,7 +42,6 @@ go_library(
go_test(
name = "go_default_xtest",
srcs = ["queue_test.go"],
importpath = "k8s.io/client-go/util/workqueue_test",
deps = ["//vendor/k8s.io/client-go/util/workqueue:go_default_library"],
)

View File

@ -89,7 +89,7 @@ type waitFor struct {
// waitForPriorityQueue implements a priority queue for waitFor items.
//
// waitForPriorityQueue implements heap.Interface. The item occuring next in
// waitForPriorityQueue implements heap.Interface. The item occurring next in
// time (i.e., the item with the smallest readyAt) is at the root (index 0).
// Peek returns this minimum item at index 0. Pop returns the minimum item after
// it has been removed from the queue and placed at index Len()-1 by

View File

@ -1,113 +0,0 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by conversion-gen. Do not edit it manually!
package v1
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
example "k8s.io/code-generator/_examples/apiserver/apis/example"
unsafe "unsafe"
)
func init() {
localSchemeBuilder.Register(RegisterConversions)
}
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1_TestType_To_example_TestType,
Convert_example_TestType_To_v1_TestType,
Convert_v1_TestTypeList_To_example_TestTypeList,
Convert_example_TestTypeList_To_v1_TestTypeList,
Convert_v1_TestTypeStatus_To_example_TestTypeStatus,
Convert_example_TestTypeStatus_To_v1_TestTypeStatus,
)
}
func autoConvert_v1_TestType_To_example_TestType(in *TestType, out *example.TestType, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1_TestTypeStatus_To_example_TestTypeStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_v1_TestType_To_example_TestType is an autogenerated conversion function.
func Convert_v1_TestType_To_example_TestType(in *TestType, out *example.TestType, s conversion.Scope) error {
return autoConvert_v1_TestType_To_example_TestType(in, out, s)
}
func autoConvert_example_TestType_To_v1_TestType(in *example.TestType, out *TestType, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_example_TestTypeStatus_To_v1_TestTypeStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_example_TestType_To_v1_TestType is an autogenerated conversion function.
func Convert_example_TestType_To_v1_TestType(in *example.TestType, out *TestType, s conversion.Scope) error {
return autoConvert_example_TestType_To_v1_TestType(in, out, s)
}
func autoConvert_v1_TestTypeList_To_example_TestTypeList(in *TestTypeList, out *example.TestTypeList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]example.TestType)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1_TestTypeList_To_example_TestTypeList is an autogenerated conversion function.
func Convert_v1_TestTypeList_To_example_TestTypeList(in *TestTypeList, out *example.TestTypeList, s conversion.Scope) error {
return autoConvert_v1_TestTypeList_To_example_TestTypeList(in, out, s)
}
func autoConvert_example_TestTypeList_To_v1_TestTypeList(in *example.TestTypeList, out *TestTypeList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]TestType)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_example_TestTypeList_To_v1_TestTypeList is an autogenerated conversion function.
func Convert_example_TestTypeList_To_v1_TestTypeList(in *example.TestTypeList, out *TestTypeList, s conversion.Scope) error {
return autoConvert_example_TestTypeList_To_v1_TestTypeList(in, out, s)
}
func autoConvert_v1_TestTypeStatus_To_example_TestTypeStatus(in *TestTypeStatus, out *example.TestTypeStatus, s conversion.Scope) error {
out.Blah = in.Blah
return nil
}
// Convert_v1_TestTypeStatus_To_example_TestTypeStatus is an autogenerated conversion function.
func Convert_v1_TestTypeStatus_To_example_TestTypeStatus(in *TestTypeStatus, out *example.TestTypeStatus, s conversion.Scope) error {
return autoConvert_v1_TestTypeStatus_To_example_TestTypeStatus(in, out, s)
}
func autoConvert_example_TestTypeStatus_To_v1_TestTypeStatus(in *example.TestTypeStatus, out *TestTypeStatus, s conversion.Scope) error {
out.Blah = in.Blah
return nil
}
// Convert_example_TestTypeStatus_To_v1_TestTypeStatus is an autogenerated conversion function.
func Convert_example_TestTypeStatus_To_v1_TestTypeStatus(in *example.TestTypeStatus, out *TestTypeStatus, s conversion.Scope) error {
return autoConvert_example_TestTypeStatus_To_v1_TestTypeStatus(in, out, s)
}

View File

@ -9,7 +9,6 @@ load(
go_binary(
name = "client-gen",
embed = [":go_default_library"],
importpath = "k8s.io/code-generator/cmd/client-gen",
)
go_library(
@ -21,6 +20,7 @@ go_library(
"//vendor/github.com/spf13/pflag:go_default_library",
"//vendor/k8s.io/code-generator/cmd/client-gen/args:go_default_library",
"//vendor/k8s.io/code-generator/cmd/client-gen/generators:go_default_library",
"//vendor/k8s.io/code-generator/pkg/util:go_default_library",
"//vendor/k8s.io/gengo/args:go_default_library",
],
)

View File

@ -39,7 +39,6 @@ go_test(
name = "go_default_test",
srcs = ["gvpackages_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/code-generator/cmd/client-gen/args",
deps = [
"//vendor/github.com/spf13/pflag:go_default_library",
"//vendor/k8s.io/code-generator/cmd/client-gen/types:go_default_library",

View File

@ -27,12 +27,7 @@ import (
codegenutil "k8s.io/code-generator/pkg/util"
)
var DefaultInputDirs = []string{
"k8s.io/apimachinery/pkg/fields",
"k8s.io/apimachinery/pkg/labels",
"k8s.io/apimachinery/pkg/watch",
"k8s.io/apimachinery/pkg/apimachinery/registered",
}
var DefaultInputDirs = []string{}
// ClientGenArgs is a wrapper for arguments to client-gen.
type CustomArgs struct {

View File

@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["tags_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/code-generator/cmd/client-gen/generators/util",
)
go_library(

View File

@ -27,6 +27,7 @@ import (
generatorargs "k8s.io/code-generator/cmd/client-gen/args"
"k8s.io/code-generator/cmd/client-gen/generators"
"k8s.io/code-generator/pkg/util"
)
func main() {
@ -34,7 +35,7 @@ func main() {
// Override defaults.
// TODO: move this out of client-gen
genericArgs.GoHeaderFilePath = filepath.Join(args.DefaultSourceTree(), "k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt")
genericArgs.GoHeaderFilePath = filepath.Join(args.DefaultSourceTree(), util.BoilerplatePath())
genericArgs.OutputPackagePath = "k8s.io/kubernetes/pkg/client/clientset_generated/"
genericArgs.AddFlags(pflag.CommandLine)

Some files were not shown because too many files have changed in this diff Show More