Merge pull request #49112 from gmarek/eventAPI

Automatic merge from submit-queue (batch tested with PRs 55952, 49112, 55450, 56178, 56151). 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>.

New API group for Events.

Fix kubernetes/features#383

cc @shyamjvs

```release-note
Add events.k8s.io api group with v1beta1 API containing redesigned Event type.
```

Kubernetes-commit: 60c20901911c710491a57eb8b9c48850cdbab054
This commit is contained in:
Kubernetes Publisher 2017-11-22 21:48:42 -08:00
commit 64ebaa5c55
38 changed files with 4808 additions and 1589 deletions

382
Godeps/Godeps.json generated
View File

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

View File

@ -120,9 +120,8 @@ message DaemonSetList {
message DaemonSetSpec {
// A label query over pods that are managed by the daemon set.
// Must match in order to be controlled.
// If empty, defaulted to labels on Pod template.
// It must match the pod template's labels.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1;
// An object that describes the pod that will be created.
@ -274,7 +273,7 @@ message DeploymentSpec {
// Label selector for pods. Existing ReplicaSets whose pods are
// selected by this will be the ones affected by this deployment.
// +optional
// It must match the pod template's labels.
optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
// Template describes the pods that will be created.
@ -434,10 +433,9 @@ message ReplicaSetSpec {
optional int32 minReadySeconds = 4;
// Selector is a label query over pods that should match the replica count.
// If the selector is empty, it is defaulted to the labels present on the pod template.
// Label keys and values that must match in order to be controlled by this replica set.
// It must match the pod template's labels.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
// Template is the object that describes the pod that will be created if
@ -636,9 +634,8 @@ message StatefulSetSpec {
optional int32 replicas = 1;
// selector is a label query over pods that should match the replica count.
// If empty, defaulted to labels on the pod template.
// It must match the pod template's labels.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
// template is the object that describes the pod that will be created if

View File

@ -170,10 +170,9 @@ type StatefulSetSpec struct {
Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`
// selector is a label query over pods that should match the replica count.
// If empty, defaulted to labels on the pod template.
// It must match the pod template's labels.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
// +optional
Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"`
Selector *metav1.LabelSelector `json:"selector" protobuf:"bytes,2,opt,name=selector"`
// template is the object that describes the pod that will be created if
// insufficient replicas are detected. Each pod stamped out by the StatefulSet
@ -320,8 +319,8 @@ type DeploymentSpec struct {
// Label selector for pods. Existing ReplicaSets whose pods are
// selected by this will be the ones affected by this deployment.
// +optional
Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"`
// It must match the pod template's labels.
Selector *metav1.LabelSelector `json:"selector" protobuf:"bytes,2,opt,name=selector"`
// Template describes the pods that will be created.
Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"`
@ -551,10 +550,9 @@ type RollingUpdateDaemonSet struct {
type DaemonSetSpec struct {
// A label query over pods that are managed by the daemon set.
// Must match in order to be controlled.
// If empty, defaulted to labels on Pod template.
// It must match the pod template's labels.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
// +optional
Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,1,opt,name=selector"`
Selector *metav1.LabelSelector `json:"selector" protobuf:"bytes,1,opt,name=selector"`
// An object that describes the pod that will be created.
// The DaemonSet will create exactly one copy of this pod on every node
@ -760,11 +758,10 @@ type ReplicaSetSpec struct {
MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"`
// Selector is a label query over pods that should match the replica count.
// If the selector is empty, it is defaulted to the labels present on the pod template.
// Label keys and values that must match in order to be controlled by this replica set.
// It must match the pod template's labels.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
// +optional
Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"`
Selector *metav1.LabelSelector `json:"selector" protobuf:"bytes,2,opt,name=selector"`
// Template is the object that describes the pod that will be created if
// insufficient replicas are detected.

View File

@ -84,7 +84,7 @@ func (DaemonSetList) SwaggerDoc() map[string]string {
var map_DaemonSetSpec = map[string]string{
"": "DaemonSetSpec is the specification of a daemon set.",
"selector": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors",
"selector": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors",
"template": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template",
"updateStrategy": "An update strategy to replace existing DaemonSet pods with new pods.",
"minReadySeconds": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).",
@ -161,7 +161,7 @@ func (DeploymentList) SwaggerDoc() map[string]string {
var map_DeploymentSpec = map[string]string{
"": "DeploymentSpec is the specification of the desired behavior of the Deployment.",
"replicas": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.",
"selector": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.",
"selector": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.",
"template": "Template describes the pods that will be created.",
"strategy": "The deployment strategy to use to replace existing pods with new ones.",
"minReadySeconds": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
@ -238,7 +238,7 @@ var map_ReplicaSetSpec = map[string]string{
"": "ReplicaSetSpec is the specification of a ReplicaSet.",
"replicas": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller",
"minReadySeconds": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
"selector": "Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors",
"selector": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors",
"template": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template",
}
@ -353,7 +353,7 @@ func (StatefulSetList) SwaggerDoc() map[string]string {
var map_StatefulSetSpec = map[string]string{
"": "A StatefulSetSpec is the specification of a StatefulSet.",
"replicas": "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.",
"selector": "selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors",
"selector": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors",
"template": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.",
"volumeClaimTemplates": "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.",
"serviceName": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.",

File diff suppressed because it is too large Load Diff

View File

@ -1029,7 +1029,6 @@ message EnvVarSource {
}
// Event is a report of an event somewhere in the cluster.
// TODO: Decide whether to store these separately or with the object they apply to.
message Event {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
@ -1068,6 +1067,30 @@ message Event {
// Type of this event (Normal, Warning), new types could be added in the future
// +optional
optional string type = 9;
// Time when this Event was first observed.
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10;
// Data about the Event series this event represents or nil if it's a singleton Event.
// +optional
optional EventSeries series = 11;
// What action was taken/failed regarding to the Regarding object.
// +optional
optional string action = 12;
// Optional secondary object for more complex actions.
// +optional
optional ObjectReference related = 13;
// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
// +optional
optional string reportingComponent = 14;
// ID of the controller instance, e.g. `kubelet-xyzf`.
// +optional
optional string reportingInstance = 15;
}
// EventList is a list of events.
@ -1081,6 +1104,19 @@ message EventList {
repeated Event items = 2;
}
// EventSeries contain information on series of events, i.e. thing that was/is happening
// continously 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
optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2;
// State of this Series: Ongoing or Finished
optional string state = 3;
}
// EventSource contains information for an event.
message EventSource {
// Component from which the event is generated.

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

@ -4468,7 +4468,6 @@ const (
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Event is a report of an event somewhere in the cluster.
// TODO: Decide whether to store these separately or with the object they apply to.
type Event struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
@ -4508,8 +4507,51 @@ type Event struct {
// Type of this event (Normal, Warning), new types could be added in the future
// +optional
Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"`
// Time when this Event was first observed.
// +optional
EventTime metav1.MicroTime `json:"eventTime,omitempty" protobuf:"bytes,10,opt,name=eventTime"`
// Data about the Event series this event represents or nil if it's a singleton Event.
// +optional
Series *EventSeries `json:"series,omitempty" protobuf:"bytes,11,opt,name=series"`
// What action was taken/failed regarding to the Regarding object.
// +optional
Action string `json:"action,omitempty" protobuf:"bytes,12,opt,name=action"`
// Optional secondary object for more complex actions.
// +optional
Related *ObjectReference `json:"related,omitempty" protobuf:"bytes,13,opt,name=related"`
// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
// +optional
ReportingController string `json:"reportingComponent" protobuf:"bytes,14,opt,name=reportingComponent"`
// ID of the controller instance, e.g. `kubelet-xyzf`.
// +optional
ReportingInstance string `json:"reportingInstance" protobuf:"bytes,15,opt,name=reportingInstance"`
}
// EventSeries contain information on series of events, i.e. thing that was/is happening
// continously 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
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"`
}
type EventSeriesState string
const (
EventSeriesStateOngoing EventSeriesState = "Ongoing"
EventSeriesStateFinished EventSeriesState = "Finished"
EventSeriesStateUnknown EventSeriesState = "Unknown"
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// EventList is a list of events.

View File

@ -541,16 +541,22 @@ func (EnvVarSource) SwaggerDoc() map[string]string {
}
var map_Event = map[string]string{
"": "Event is a report of an event somewhere in the cluster.",
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
"involvedObject": "The object that this event is about.",
"reason": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.",
"message": "A human-readable description of the status of this operation.",
"source": "The component reporting this event. Should be a short machine understandable string.",
"firstTimestamp": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)",
"lastTimestamp": "The time at which the most recent occurrence of this event was recorded.",
"count": "The number of times this event has occurred.",
"type": "Type of this event (Normal, Warning), new types could be added in the future",
"": "Event is a report of an event somewhere in the cluster.",
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
"involvedObject": "The object that this event is about.",
"reason": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.",
"message": "A human-readable description of the status of this operation.",
"source": "The component reporting this event. Should be a short machine understandable string.",
"firstTimestamp": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)",
"lastTimestamp": "The time at which the most recent occurrence of this event was recorded.",
"count": "The number of times this event has occurred.",
"type": "Type of this event (Normal, Warning), new types could be added in the future",
"eventTime": "Time when this Event was first observed.",
"series": "Data about the Event series this event represents or nil if it's a singleton Event.",
"action": "What action was taken/failed regarding to the Regarding object.",
"related": "Optional secondary object for more complex actions.",
"reportingComponent": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.",
"reportingInstance": "ID of the controller instance, e.g. `kubelet-xyzf`.",
}
func (Event) SwaggerDoc() map[string]string {
@ -567,6 +573,17 @@ func (EventList) SwaggerDoc() map[string]string {
return map_EventList
}
var map_EventSeries = map[string]string{
"": "EventSeries contain information on series of events, i.e. thing that was/is happening continously for some time.",
"count": "Number of occurrences in this series up to the last heartbeat time",
"lastObservedTime": "Time of the last occurence observed",
"state": "State of this Series: Ongoing or Finished",
}
func (EventSeries) SwaggerDoc() map[string]string {
return map_EventSeries
}
var map_EventSource = map[string]string{
"": "EventSource contains information for an event.",
"component": "Component from which the event is generated.",

View File

@ -1383,6 +1383,25 @@ func (in *Event) DeepCopyInto(out *Event) {
out.Source = in.Source
in.FirstTimestamp.DeepCopyInto(&out.FirstTimestamp)
in.LastTimestamp.DeepCopyInto(&out.LastTimestamp)
in.EventTime.DeepCopyInto(&out.EventTime)
if in.Series != nil {
in, out := &in.Series, &out.Series
if *in == nil {
*out = nil
} else {
*out = new(EventSeries)
(*in).DeepCopyInto(*out)
}
}
if in.Related != nil {
in, out := &in.Related, &out.Related
if *in == nil {
*out = nil
} else {
*out = new(ObjectReference)
**out = **in
}
}
return
}
@ -1439,6 +1458,23 @@ func (in *EventList) DeepCopyObject() runtime.Object {
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EventSeries) DeepCopyInto(out *EventSeries) {
*out = *in
in.LastObservedTime.DeepCopyInto(&out.LastObservedTime)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSeries.
func (in *EventSeries) DeepCopy() *EventSeries {
if in == nil {
return nil
}
out := new(EventSeries)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EventSource) DeepCopyInto(out *EventSource) {
*out = *in

42
vendor/k8s.io/api/events/v1beta1/BUILD generated vendored Normal file
View File

@ -0,0 +1,42 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
filegroup(
name = "go_default_library_protos",
srcs = ["generated.proto"],
visibility = ["//visibility:public"],
)
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"generated.pb.go",
"register.go",
"types.go",
"types_swagger_doc_generated.go",
"zz_generated.deepcopy.go",
],
importpath = "k8s.io/api/events/v1beta1",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/gogo/protobuf/proto:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_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",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

21
vendor/k8s.io/api/events/v1beta1/doc.go generated vendored Normal file
View File

@ -0,0 +1,21 @@
/*
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.
*/
// +k8s:deepcopy-gen=package
// +k8s:openapi-gen=true
// +groupName=events.k8s.io
package v1beta1

1306
vendor/k8s.io/api/events/v1beta1/generated.pb.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

122
vendor/k8s.io/api/events/v1beta1/generated.proto generated vendored Normal file
View File

@ -0,0 +1,122 @@
/*
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 go-to-protobuf. Do not edit it manually!
syntax = 'proto2';
package k8s.io.api.events.v1beta1;
import "k8s.io/api/core/v1/generated.proto";
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
import "k8s.io/apimachinery/pkg/runtime/generated.proto";
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
// Package-wide variables from generator "generated".
option go_package = "v1beta1";
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
message Event {
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Required. Time when this Event was first observed.
optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2;
// Data about the Event series this event represents or nil if it's a singleton Event.
// +optional
optional EventSeries series = 3;
// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
// +optional
optional string reportingController = 4;
// ID of the controller instance, e.g. `kubelet-xyzf`.
// +optional
optional string reportingInstance = 5;
// What action was taken/failed regarding to the regarding object.
// +optional
optional string action = 6;
// Why the action was taken.
optional string reason = 7;
// The object this Event is about. In most cases it's an Object reporting controller implements.
// E.g. ReplicaSetController implements ReplicaSets and this event is emitted because
// it acts on some changes in a ReplicaSet object.
// +optional
optional k8s.io.api.core.v1.ObjectReference regarding = 8;
// Optional secondary object for more complex actions. E.g. when regarding object triggers
// a creation or deletion of related object.
// +optional
optional k8s.io.api.core.v1.ObjectReference related = 9;
// Optional. A human-readable description of the status of this operation.
// Maximal length of the note is 1kB, but libraries should be prepared to
// handle values up to 64kB.
// +optional
optional string note = 10;
// Type of this event (Normal, Warning), new types could be added in the
// future.
// +optional
optional string type = 11;
// Deprecated field assuring backward compatibility with core.v1 Event type
// +optional
optional k8s.io.api.core.v1.EventSource deprecatedSource = 12;
// Deprecated field assuring backward compatibility with core.v1 Event type
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13;
// Deprecated field assuring backward compatibility with core.v1 Event type
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14;
// Deprecated field assuring backward compatibility with core.v1 Event type
// +optional
optional int32 deprecatedCount = 15;
}
// EventList is a list of Event objects.
message EventList {
// Standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
// Items is a list of schema objects.
repeated Event items = 2;
}
// EventSeries contain information on series of events, i.e. thing that was/is happening
// continously for some time.
message EventSeries {
// Number of occurrences in this series up to the last heartbeat time
optional int32 count = 1;
// Time when last Event from the series was seen before last heartbeat.
optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2;
// Information whether this series is ongoing or finished.
optional string state = 3;
}

53
vendor/k8s.io/api/events/v1beta1/register.go generated vendored Normal file
View File

@ -0,0 +1,53 @@
/*
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.
*/
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)
// GroupName is the group name use in this package
const GroupName = "events.k8s.io"
// SchemeGroupVersion is group version used to register these objects
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
// Resource takes an unqualified resource and returns a Group qualified GroupResource
func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
}
var (
// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
localSchemeBuilder = &SchemeBuilder
AddToScheme = localSchemeBuilder.AddToScheme
)
// Adds the list of known types to api.Scheme.
func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&Event{},
&EventList{},
)
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
}

122
vendor/k8s.io/api/events/v1beta1/types.go generated vendored Normal file
View File

@ -0,0 +1,122 @@
/*
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.
*/
package v1beta1
import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
type Event struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Required. Time when this Event was first observed.
EventTime metav1.MicroTime `json:"eventTime" protobuf:"bytes,2,opt,name=eventTime"`
// Data about the Event series this event represents or nil if it's a singleton Event.
// +optional
Series *EventSeries `json:"series,omitempty" protobuf:"bytes,3,opt,name=series"`
// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
// +optional
ReportingController string `json:"reportingController,omitempty" protobuf:"bytes,4,opt,name=reportingController"`
// ID of the controller instance, e.g. `kubelet-xyzf`.
// +optional
ReportingInstance string `json:"reportingInstance,omitemtpy" protobuf:"bytes,5,opt,name=reportingInstance"`
// What action was taken/failed regarding to the regarding object.
// +optional
Action string `json:"action,omitemtpy" protobuf:"bytes,6,name=action"`
// Why the action was taken.
Reason string `json:"reason,omitempty" protobuf:"bytes,7,name=reason"`
// The object this Event is about. In most cases it's an Object reporting controller implements.
// E.g. ReplicaSetController implements ReplicaSets and this event is emitted because
// it acts on some changes in a ReplicaSet object.
// +optional
Regarding corev1.ObjectReference `json:"regarding,omitempty" protobuf:"bytes,8,opt,name=regarding"`
// Optional secondary object for more complex actions. E.g. when regarding object triggers
// a creation or deletion of related object.
// +optional
Related *corev1.ObjectReference `json:"related,omitempty" protobuf:"bytes,9,opt,name=related"`
// Optional. A human-readable description of the status of this operation.
// Maximal length of the note is 1kB, but libraries should be prepared to
// handle values up to 64kB.
// +optional
Note string `json:"note,omitempty" protobuf:"bytes,10,opt,name=note"`
// Type of this event (Normal, Warning), new types could be added in the
// future.
// +optional
Type string `json:"type,omitempty" protobuf:"bytes,11,opt,name=type"`
// Deprecated field assuring backward compatibility with core.v1 Event type
// +optional
DeprecatedSource corev1.EventSource `json:"deprecatedSource,omitempty" protobuf:"bytes,12,opt,name=deprecatedSource"`
// Deprecated field assuring backward compatibility with core.v1 Event type
// +optional
DeprecatedFirstTimestamp metav1.Time `json:"deprecatedFirstTimestamp,omitempty" protobuf:"bytes,13,opt,name=deprecatedFirstTimestamp"`
// Deprecated field assuring backward compatibility with core.v1 Event type
// +optional
DeprecatedLastTimestamp metav1.Time `json:"deprecatedLastTimestamp,omitempty" protobuf:"bytes,14,opt,name=deprecatedLastTimestamp"`
// Deprecated field assuring backward compatibility with core.v1 Event type
// +optional
DeprecatedCount int32 `json:"deprecatedCount,omitempty" protobuf:"varint,15,opt,name=deprecatedCount"`
}
// EventSeries contain information on series of events, i.e. thing that was/is happening
// continously 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"`
// Time when last Event from the series was seen before last heartbeat.
LastObservedTime metav1.MicroTime `json:"lastObservedTime" protobuf:"bytes,2,opt,name=lastObservedTime"`
// Information whether this series is ongoing or finished.
State EventSeriesState `json:"state" protobuf:"bytes,3,opt,name=state"`
}
type EventSeriesState string
const (
EventSeriesStateOngoing EventSeriesState = "Ongoing"
EventSeriesStateFinished EventSeriesState = "Finished"
EventSeriesStateUnknown EventSeriesState = "Unknown"
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// EventList is a list of Event objects.
type EventList struct {
metav1.TypeMeta `json:",inline"`
// Standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
// +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Items is a list of schema objects.
Items []Event `json:"items" protobuf:"bytes,2,rep,name=items"`
}

View File

@ -0,0 +1,73 @@
/*
Copyright 2016 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.
*/
package v1beta1
// This file contains a collection of methods that can be used from go-restful to
// generate Swagger API documentation for its models. Please read this PR for more
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
//
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
// they are on one line! For multiple line or blocks that you want to ignore use ---.
// Any context after a --- is ignored.
//
// Those methods can be generated by using hack/update-generated-swagger-docs.sh
// AUTO-GENERATED FUNCTIONS START HERE
var map_Event = map[string]string{
"": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.",
"eventTime": "Required. Time when this Event was first observed.",
"series": "Data about the Event series this event represents or nil if it's a singleton Event.",
"reportingController": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.",
"reportingInstance": "ID of the controller instance, e.g. `kubelet-xyzf`.",
"action": "What action was taken/failed regarding to the regarding object.",
"reason": "Why the action was taken.",
"regarding": "The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.",
"related": "Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.",
"note": "Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.",
"type": "Type of this event (Normal, Warning), new types could be added in the future.",
"deprecatedSource": "Deprecated field assuring backward compatibility with core.v1 Event type",
"deprecatedFirstTimestamp": "Deprecated field assuring backward compatibility with core.v1 Event type",
"deprecatedLastTimestamp": "Deprecated field assuring backward compatibility with core.v1 Event type",
"deprecatedCount": "Deprecated field assuring backward compatibility with core.v1 Event type",
}
func (Event) SwaggerDoc() map[string]string {
return map_Event
}
var map_EventList = map[string]string{
"": "EventList is a list of Event objects.",
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
"items": "Items is a list of schema objects.",
}
func (EventList) SwaggerDoc() map[string]string {
return map_EventList
}
var map_EventSeries = map[string]string{
"": "EventSeries contain information on series of events, i.e. thing that was/is happening continously 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.",
}
func (EventSeries) SwaggerDoc() map[string]string {
return map_EventSeries
}
// AUTO-GENERATED FUNCTIONS END HERE

View File

@ -0,0 +1,127 @@
// +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 deepcopy-gen. Do not edit it manually!
package v1beta1
import (
v1 "k8s.io/api/core/v1"
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 *Event) DeepCopyInto(out *Event) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.EventTime.DeepCopyInto(&out.EventTime)
if in.Series != nil {
in, out := &in.Series, &out.Series
if *in == nil {
*out = nil
} else {
*out = new(EventSeries)
(*in).DeepCopyInto(*out)
}
}
out.Regarding = in.Regarding
if in.Related != nil {
in, out := &in.Related, &out.Related
if *in == nil {
*out = nil
} else {
*out = new(v1.ObjectReference)
**out = **in
}
}
out.DeprecatedSource = in.DeprecatedSource
in.DeprecatedFirstTimestamp.DeepCopyInto(&out.DeprecatedFirstTimestamp)
in.DeprecatedLastTimestamp.DeepCopyInto(&out.DeprecatedLastTimestamp)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event.
func (in *Event) DeepCopy() *Event {
if in == nil {
return nil
}
out := new(Event)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *Event) 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 *EventList) DeepCopyInto(out *EventList) {
*out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Event, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList.
func (in *EventList) DeepCopy() *EventList {
if in == nil {
return nil
}
out := new(EventList)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *EventList) 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 *EventSeries) DeepCopyInto(out *EventSeries) {
*out = *in
in.LastObservedTime.DeepCopyInto(&out.LastObservedTime)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSeries.
func (in *EventSeries) DeepCopy() *EventSeries {
if in == nil {
return nil
}
out := new(EventSeries)
in.DeepCopyInto(out)
return out
}

View File

@ -38,6 +38,7 @@ func AddConversionFuncs(scheme *runtime.Scheme) error {
Convert_intstr_IntOrString_To_intstr_IntOrString,
Convert_unversioned_Time_To_unversioned_Time,
Convert_unversioned_MicroTime_To_unversioned_MicroTime,
Convert_Pointer_v1_Duration_To_v1_Duration,
Convert_v1_Duration_To_Pointer_v1_Duration,
@ -199,6 +200,12 @@ func Convert_v1_Duration_To_Pointer_v1_Duration(in *Duration, out **Duration, s
return nil
}
func Convert_unversioned_MicroTime_To_unversioned_MicroTime(in *MicroTime, out *MicroTime, s conversion.Scope) error {
// Cannot deep copy these, because time.Time has unexported fields.
*out = *in
return nil
}
// Convert_Slice_string_To_unversioned_Time allows converting a URL query parameter value
func Convert_Slice_string_To_unversioned_Time(input *[]string, out *Time, s conversion.Scope) error {
str := ""

View File

@ -25,6 +25,7 @@ go_library(
"//vendor/k8s.io/api/batch/v2alpha1:go_default_library",
"//vendor/k8s.io/api/certificates/v1beta1:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/api/events/v1beta1:go_default_library",
"//vendor/k8s.io/api/extensions/v1beta1:go_default_library",
"//vendor/k8s.io/api/networking/v1:go_default_library",
"//vendor/k8s.io/api/policy/v1beta1:go_default_library",
@ -45,6 +46,7 @@ go_library(
"//vendor/k8s.io/client-go/informers/batch:go_default_library",
"//vendor/k8s.io/client-go/informers/certificates:go_default_library",
"//vendor/k8s.io/client-go/informers/core:go_default_library",
"//vendor/k8s.io/client-go/informers/events:go_default_library",
"//vendor/k8s.io/client-go/informers/extensions:go_default_library",
"//vendor/k8s.io/client-go/informers/internalinterfaces:go_default_library",
"//vendor/k8s.io/client-go/informers/networking:go_default_library",
@ -75,6 +77,7 @@ filegroup(
"//staging/src/k8s.io/client-go/informers/batch:all-srcs",
"//staging/src/k8s.io/client-go/informers/certificates:all-srcs",
"//staging/src/k8s.io/client-go/informers/core:all-srcs",
"//staging/src/k8s.io/client-go/informers/events:all-srcs",
"//staging/src/k8s.io/client-go/informers/extensions:all-srcs",
"//staging/src/k8s.io/client-go/informers/internalinterfaces:all-srcs",
"//staging/src/k8s.io/client-go/informers/networking:all-srcs",

29
vendor/k8s.io/client-go/informers/events/BUILD generated vendored Normal file
View File

@ -0,0 +1,29 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["interface.go"],
importpath = "k8s.io/client-go/informers/events",
visibility = ["//visibility:public"],
deps = [
"//vendor/k8s.io/client-go/informers/events/v1beta1:go_default_library",
"//vendor/k8s.io/client-go/informers/internalinterfaces:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//staging/src/k8s.io/client-go/informers/events/v1beta1:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

46
vendor/k8s.io/client-go/informers/events/interface.go generated vendored Normal file
View File

@ -0,0 +1,46 @@
/*
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 automatically generated by informer-gen
package events
import (
v1beta1 "k8s.io/client-go/informers/events/v1beta1"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
)
// Interface provides access to each of this group's versions.
type Interface interface {
// V1beta1 provides access to shared informers for resources in V1beta1.
V1beta1() v1beta1.Interface
}
type group struct {
factory internalinterfaces.SharedInformerFactory
namespace string
tweakListOptions internalinterfaces.TweakListOptionsFunc
}
// New returns a new Interface.
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
}
// V1beta1 returns a new v1beta1.Interface.
func (g *group) V1beta1() v1beta1.Interface {
return v1beta1.New(g.factory, g.namespace, g.tweakListOptions)
}

35
vendor/k8s.io/client-go/informers/events/v1beta1/BUILD generated vendored Normal file
View File

@ -0,0 +1,35 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"event.go",
"interface.go",
],
importpath = "k8s.io/client-go/informers/events/v1beta1",
visibility = ["//visibility:public"],
deps = [
"//vendor/k8s.io/api/events/v1beta1:go_default_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/watch:go_default_library",
"//vendor/k8s.io/client-go/informers/internalinterfaces:go_default_library",
"//vendor/k8s.io/client-go/kubernetes:go_default_library",
"//vendor/k8s.io/client-go/listers/events/v1beta1:go_default_library",
"//vendor/k8s.io/client-go/tools/cache:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@ -0,0 +1,88 @@
/*
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 automatically generated by informer-gen
package v1beta1
import (
events_v1beta1 "k8s.io/api/events/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes"
v1beta1 "k8s.io/client-go/listers/events/v1beta1"
cache "k8s.io/client-go/tools/cache"
time "time"
)
// EventInformer provides access to a shared informer and lister for
// Events.
type EventInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1beta1.EventLister
}
type eventInformer struct {
factory internalinterfaces.SharedInformerFactory
tweakListOptions internalinterfaces.TweakListOptionsFunc
namespace string
}
// NewEventInformer constructs a new informer for Event type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
func NewEventInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredEventInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredEventInformer constructs a new informer for Event type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
func NewFilteredEventInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.EventsV1beta1().Events(namespace).List(options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.EventsV1beta1().Events(namespace).Watch(options)
},
},
&events_v1beta1.Event{},
resyncPeriod,
indexers,
)
}
func (f *eventInformer) defaultInformer(client kubernetes.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredEventInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
func (f *eventInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&events_v1beta1.Event{}, f.defaultInformer)
}
func (f *eventInformer) Lister() v1beta1.EventLister {
return v1beta1.NewEventLister(f.Informer().GetIndexer())
}

View File

@ -0,0 +1,45 @@
/*
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 automatically generated by informer-gen
package v1beta1
import (
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
)
// Interface provides access to all the informers in this group version.
type Interface interface {
// Events returns a EventInformer.
Events() EventInformer
}
type version struct {
factory internalinterfaces.SharedInformerFactory
namespace string
tweakListOptions internalinterfaces.TweakListOptionsFunc
}
// New returns a new Interface.
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
}
// Events returns a EventInformer.
func (v *version) Events() EventInformer {
return &eventInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}

View File

@ -28,6 +28,7 @@ import (
batch "k8s.io/client-go/informers/batch"
certificates "k8s.io/client-go/informers/certificates"
core "k8s.io/client-go/informers/core"
events "k8s.io/client-go/informers/events"
extensions "k8s.io/client-go/informers/extensions"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
networking "k8s.io/client-go/informers/networking"
@ -140,6 +141,7 @@ type SharedInformerFactory interface {
Batch() batch.Interface
Certificates() certificates.Interface
Core() core.Interface
Events() events.Interface
Extensions() extensions.Interface
Networking() networking.Interface
Policy() policy.Interface
@ -173,6 +175,10 @@ func (f *sharedInformerFactory) Core() core.Interface {
return core.New(f, f.namespace, f.tweakListOptions)
}
func (f *sharedInformerFactory) Events() events.Interface {
return events.New(f, f.namespace, f.tweakListOptions)
}
func (f *sharedInformerFactory) Extensions() extensions.Interface {
return extensions.New(f, f.namespace, f.tweakListOptions)
}

View File

@ -32,6 +32,7 @@ import (
v2alpha1 "k8s.io/api/batch/v2alpha1"
certificates_v1beta1 "k8s.io/api/certificates/v1beta1"
core_v1 "k8s.io/api/core/v1"
events_v1beta1 "k8s.io/api/events/v1beta1"
extensions_v1beta1 "k8s.io/api/extensions/v1beta1"
networking_v1 "k8s.io/api/networking/v1"
policy_v1beta1 "k8s.io/api/policy/v1beta1"
@ -173,6 +174,10 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
case core_v1.SchemeGroupVersion.WithResource("serviceaccounts"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Core().V1().ServiceAccounts().Informer()}, nil
// Group=events.k8s.io, Version=v1beta1
case events_v1beta1.SchemeGroupVersion.WithResource("events"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Events().V1beta1().Events().Informer()}, nil
// Group=extensions, Version=v1beta1
case extensions_v1beta1.SchemeGroupVersion.WithResource("daemonsets"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Extensions().V1beta1().DaemonSets().Informer()}, nil

View File

@ -32,6 +32,7 @@ go_library(
"//vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1:go_default_library",
"//vendor/k8s.io/client-go/kubernetes/typed/certificates/v1beta1:go_default_library",
"//vendor/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
"//vendor/k8s.io/client-go/kubernetes/typed/events/v1beta1:go_default_library",
"//vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1:go_default_library",
"//vendor/k8s.io/client-go/kubernetes/typed/networking/v1:go_default_library",
"//vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1:go_default_library",
@ -77,6 +78,7 @@ filegroup(
"//staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1:all-srcs",
"//staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1beta1:all-srcs",
"//staging/src/k8s.io/client-go/kubernetes/typed/core/v1:all-srcs",
"//staging/src/k8s.io/client-go/kubernetes/typed/events/v1beta1:all-srcs",
"//staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1:all-srcs",
"//staging/src/k8s.io/client-go/kubernetes/typed/networking/v1:all-srcs",
"//staging/src/k8s.io/client-go/kubernetes/typed/policy/v1beta1:all-srcs",

View File

@ -35,6 +35,7 @@ import (
batchv2alpha1 "k8s.io/client-go/kubernetes/typed/batch/v2alpha1"
certificatesv1beta1 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1"
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
eventsv1beta1 "k8s.io/client-go/kubernetes/typed/events/v1beta1"
extensionsv1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1"
networkingv1 "k8s.io/client-go/kubernetes/typed/networking/v1"
policyv1beta1 "k8s.io/client-go/kubernetes/typed/policy/v1beta1"
@ -84,6 +85,9 @@ type Interface interface {
CoreV1() corev1.CoreV1Interface
// Deprecated: please explicitly pick a version if possible.
Core() corev1.CoreV1Interface
EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
// Deprecated: please explicitly pick a version if possible.
Events() eventsv1beta1.EventsV1beta1Interface
ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
// Deprecated: please explicitly pick a version if possible.
Extensions() extensionsv1beta1.ExtensionsV1beta1Interface
@ -104,11 +108,11 @@ type Interface interface {
SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
// Deprecated: please explicitly pick a version if possible.
Settings() settingsv1alpha1.SettingsV1alpha1Interface
StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
StorageV1beta1() storagev1beta1.StorageV1beta1Interface
StorageV1() storagev1.StorageV1Interface
// Deprecated: please explicitly pick a version if possible.
Storage() storagev1.StorageV1Interface
StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
}
// Clientset contains the clients for groups. Each group has exactly one
@ -131,6 +135,7 @@ type Clientset struct {
batchV2alpha1 *batchv2alpha1.BatchV2alpha1Client
certificatesV1beta1 *certificatesv1beta1.CertificatesV1beta1Client
coreV1 *corev1.CoreV1Client
eventsV1beta1 *eventsv1beta1.EventsV1beta1Client
extensionsV1beta1 *extensionsv1beta1.ExtensionsV1beta1Client
networkingV1 *networkingv1.NetworkingV1Client
policyV1beta1 *policyv1beta1.PolicyV1beta1Client
@ -139,9 +144,9 @@ type Clientset struct {
rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client
schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client
settingsV1alpha1 *settingsv1alpha1.SettingsV1alpha1Client
storageV1alpha1 *storagev1alpha1.StorageV1alpha1Client
storageV1beta1 *storagev1beta1.StorageV1beta1Client
storageV1 *storagev1.StorageV1Client
storageV1alpha1 *storagev1alpha1.StorageV1alpha1Client
}
// AdmissionregistrationV1alpha1 retrieves the AdmissionregistrationV1alpha1Client
@ -272,6 +277,17 @@ func (c *Clientset) Core() corev1.CoreV1Interface {
return c.coreV1
}
// EventsV1beta1 retrieves the EventsV1beta1Client
func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
return c.eventsV1beta1
}
// Deprecated: Events retrieves the default version of EventsClient.
// Please explicitly pick a version.
func (c *Clientset) Events() eventsv1beta1.EventsV1beta1Interface {
return c.eventsV1beta1
}
// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
return c.extensionsV1beta1
@ -348,11 +364,6 @@ func (c *Clientset) Settings() settingsv1alpha1.SettingsV1alpha1Interface {
return c.settingsV1alpha1
}
// StorageV1alpha1 retrieves the StorageV1alpha1Client
func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
return c.storageV1alpha1
}
// StorageV1beta1 retrieves the StorageV1beta1Client
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
return c.storageV1beta1
@ -369,6 +380,11 @@ func (c *Clientset) Storage() storagev1.StorageV1Interface {
return c.storageV1
}
// StorageV1alpha1 retrieves the StorageV1alpha1Client
func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
return c.storageV1alpha1
}
// Discovery retrieves the DiscoveryClient
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
if c == nil {
@ -449,6 +465,10 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
if err != nil {
return nil, err
}
cs.eventsV1beta1, err = eventsv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.extensionsV1beta1, err = extensionsv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
@ -481,10 +501,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
if err != nil {
return nil, err
}
cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.storageV1beta1, err = storagev1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
@ -493,6 +509,10 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
if err != nil {
return nil, err
}
cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
if err != nil {
@ -522,6 +542,7 @@ func NewForConfigOrDie(c *rest.Config) *Clientset {
cs.batchV2alpha1 = batchv2alpha1.NewForConfigOrDie(c)
cs.certificatesV1beta1 = certificatesv1beta1.NewForConfigOrDie(c)
cs.coreV1 = corev1.NewForConfigOrDie(c)
cs.eventsV1beta1 = eventsv1beta1.NewForConfigOrDie(c)
cs.extensionsV1beta1 = extensionsv1beta1.NewForConfigOrDie(c)
cs.networkingV1 = networkingv1.NewForConfigOrDie(c)
cs.policyV1beta1 = policyv1beta1.NewForConfigOrDie(c)
@ -530,9 +551,9 @@ func NewForConfigOrDie(c *rest.Config) *Clientset {
cs.rbacV1alpha1 = rbacv1alpha1.NewForConfigOrDie(c)
cs.schedulingV1alpha1 = schedulingv1alpha1.NewForConfigOrDie(c)
cs.settingsV1alpha1 = settingsv1alpha1.NewForConfigOrDie(c)
cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c)
cs.storageV1beta1 = storagev1beta1.NewForConfigOrDie(c)
cs.storageV1 = storagev1.NewForConfigOrDie(c)
cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c)
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
return &cs
@ -557,6 +578,7 @@ func New(c rest.Interface) *Clientset {
cs.batchV2alpha1 = batchv2alpha1.New(c)
cs.certificatesV1beta1 = certificatesv1beta1.New(c)
cs.coreV1 = corev1.New(c)
cs.eventsV1beta1 = eventsv1beta1.New(c)
cs.extensionsV1beta1 = extensionsv1beta1.New(c)
cs.networkingV1 = networkingv1.New(c)
cs.policyV1beta1 = policyv1beta1.New(c)
@ -565,9 +587,9 @@ func New(c rest.Interface) *Clientset {
cs.rbacV1alpha1 = rbacv1alpha1.New(c)
cs.schedulingV1alpha1 = schedulingv1alpha1.New(c)
cs.settingsV1alpha1 = settingsv1alpha1.New(c)
cs.storageV1alpha1 = storagev1alpha1.New(c)
cs.storageV1beta1 = storagev1beta1.New(c)
cs.storageV1 = storagev1.New(c)
cs.storageV1alpha1 = storagev1alpha1.New(c)
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
return &cs

View File

@ -29,6 +29,7 @@ go_library(
"//vendor/k8s.io/api/batch/v2alpha1:go_default_library",
"//vendor/k8s.io/api/certificates/v1beta1:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/api/events/v1beta1:go_default_library",
"//vendor/k8s.io/api/extensions/v1beta1:go_default_library",
"//vendor/k8s.io/api/networking/v1:go_default_library",
"//vendor/k8s.io/api/policy/v1beta1:go_default_library",

View File

@ -33,6 +33,7 @@ import (
batchv2alpha1 "k8s.io/api/batch/v2alpha1"
certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
corev1 "k8s.io/api/core/v1"
eventsv1beta1 "k8s.io/api/events/v1beta1"
extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
networkingv1 "k8s.io/api/networking/v1"
policyv1beta1 "k8s.io/api/policy/v1beta1"
@ -90,6 +91,7 @@ func AddToScheme(scheme *runtime.Scheme) {
batchv2alpha1.AddToScheme(scheme)
certificatesv1beta1.AddToScheme(scheme)
corev1.AddToScheme(scheme)
eventsv1beta1.AddToScheme(scheme)
extensionsv1beta1.AddToScheme(scheme)
networkingv1.AddToScheme(scheme)
policyv1beta1.AddToScheme(scheme)
@ -98,8 +100,8 @@ func AddToScheme(scheme *runtime.Scheme) {
rbacv1alpha1.AddToScheme(scheme)
schedulingv1alpha1.AddToScheme(scheme)
settingsv1alpha1.AddToScheme(scheme)
storagev1alpha1.AddToScheme(scheme)
storagev1beta1.AddToScheme(scheme)
storagev1.AddToScheme(scheme)
storagev1alpha1.AddToScheme(scheme)
}

View File

@ -0,0 +1,39 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"event.go",
"events_client.go",
"generated_expansion.go",
],
importpath = "k8s.io/client-go/kubernetes/typed/events/v1beta1",
visibility = ["//visibility:public"],
deps = [
"//vendor/k8s.io/api/events/v1beta1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/watch:go_default_library",
"//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library",
"//vendor/k8s.io/client-go/rest:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//staging/src/k8s.io/client-go/kubernetes/typed/events/v1beta1/fake:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@ -0,0 +1,18 @@
/*
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 package has the automatically generated typed clients.
package v1beta1

View File

@ -0,0 +1,155 @@
/*
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.
*/
package v1beta1
import (
v1beta1 "k8s.io/api/events/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
scheme "k8s.io/client-go/kubernetes/scheme"
rest "k8s.io/client-go/rest"
)
// EventsGetter has a method to return a EventInterface.
// A group's client should implement this interface.
type EventsGetter interface {
Events(namespace string) EventInterface
}
// EventInterface has methods to work with Event resources.
type EventInterface interface {
Create(*v1beta1.Event) (*v1beta1.Event, error)
Update(*v1beta1.Event) (*v1beta1.Event, error)
Delete(name string, options *v1.DeleteOptions) error
DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
Get(name string, options v1.GetOptions) (*v1beta1.Event, error)
List(opts v1.ListOptions) (*v1beta1.EventList, error)
Watch(opts v1.ListOptions) (watch.Interface, error)
Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Event, err error)
EventExpansion
}
// events implements EventInterface
type events struct {
client rest.Interface
ns string
}
// newEvents returns a Events
func newEvents(c *EventsV1beta1Client, namespace string) *events {
return &events{
client: c.RESTClient(),
ns: namespace,
}
}
// Get takes name of the event, and returns the corresponding event object, and an error if there is any.
func (c *events) Get(name string, options v1.GetOptions) (result *v1beta1.Event, err error) {
result = &v1beta1.Event{}
err = c.client.Get().
Namespace(c.ns).
Resource("events").
Name(name).
VersionedParams(&options, scheme.ParameterCodec).
Do().
Into(result)
return
}
// List takes label and field selectors, and returns the list of Events that match those selectors.
func (c *events) List(opts v1.ListOptions) (result *v1beta1.EventList, err error) {
result = &v1beta1.EventList{}
err = c.client.Get().
Namespace(c.ns).
Resource("events").
VersionedParams(&opts, scheme.ParameterCodec).
Do().
Into(result)
return
}
// Watch returns a watch.Interface that watches the requested events.
func (c *events) Watch(opts v1.ListOptions) (watch.Interface, error) {
opts.Watch = true
return c.client.Get().
Namespace(c.ns).
Resource("events").
VersionedParams(&opts, scheme.ParameterCodec).
Watch()
}
// Create takes the representation of a event and creates it. Returns the server's representation of the event, and an error, if there is any.
func (c *events) Create(event *v1beta1.Event) (result *v1beta1.Event, err error) {
result = &v1beta1.Event{}
err = c.client.Post().
Namespace(c.ns).
Resource("events").
Body(event).
Do().
Into(result)
return
}
// Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any.
func (c *events) Update(event *v1beta1.Event) (result *v1beta1.Event, err error) {
result = &v1beta1.Event{}
err = c.client.Put().
Namespace(c.ns).
Resource("events").
Name(event.Name).
Body(event).
Do().
Into(result)
return
}
// Delete takes name of the event and deletes it. Returns an error if one occurs.
func (c *events) Delete(name string, options *v1.DeleteOptions) error {
return c.client.Delete().
Namespace(c.ns).
Resource("events").
Name(name).
Body(options).
Do().
Error()
}
// DeleteCollection deletes a collection of objects.
func (c *events) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
return c.client.Delete().
Namespace(c.ns).
Resource("events").
VersionedParams(&listOptions, scheme.ParameterCodec).
Body(options).
Do().
Error()
}
// Patch applies the patch and returns the patched event.
func (c *events) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Event, err error) {
result = &v1beta1.Event{}
err = c.client.Patch(pt).
Namespace(c.ns).
Resource("events").
SubResource(subresources...).
Name(name).
Body(data).
Do().
Into(result)
return
}

View File

@ -0,0 +1,88 @@
/*
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.
*/
package v1beta1
import (
v1beta1 "k8s.io/api/events/v1beta1"
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
"k8s.io/client-go/kubernetes/scheme"
rest "k8s.io/client-go/rest"
)
type EventsV1beta1Interface interface {
RESTClient() rest.Interface
EventsGetter
}
// EventsV1beta1Client is used to interact with features provided by the events.k8s.io group.
type EventsV1beta1Client struct {
restClient rest.Interface
}
func (c *EventsV1beta1Client) Events(namespace string) EventInterface {
return newEvents(c, namespace)
}
// NewForConfig creates a new EventsV1beta1Client for the given config.
func NewForConfig(c *rest.Config) (*EventsV1beta1Client, error) {
config := *c
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
client, err := rest.RESTClientFor(&config)
if err != nil {
return nil, err
}
return &EventsV1beta1Client{client}, nil
}
// NewForConfigOrDie creates a new EventsV1beta1Client for the given config and
// panics if there is an error in the config.
func NewForConfigOrDie(c *rest.Config) *EventsV1beta1Client {
client, err := NewForConfig(c)
if err != nil {
panic(err)
}
return client
}
// New creates a new EventsV1beta1Client for the given RESTClient.
func New(c rest.Interface) *EventsV1beta1Client {
return &EventsV1beta1Client{c}
}
func setConfigDefaults(config *rest.Config) error {
gv := v1beta1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: scheme.Codecs}
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
}
return nil
}
// RESTClient returns a RESTClient that is used to communicate
// with API server by this client implementation.
func (c *EventsV1beta1Client) RESTClient() rest.Interface {
if c == nil {
return nil
}
return c.restClient
}

View File

@ -0,0 +1,19 @@
/*
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.
*/
package v1beta1
type EventExpansion interface{}

31
vendor/k8s.io/client-go/listers/events/v1beta1/BUILD generated vendored Normal file
View File

@ -0,0 +1,31 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"event.go",
"expansion_generated.go",
],
importpath = "k8s.io/client-go/listers/events/v1beta1",
visibility = ["//visibility:public"],
deps = [
"//vendor/k8s.io/api/events/v1beta1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/labels:go_default_library",
"//vendor/k8s.io/client-go/tools/cache:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@ -0,0 +1,94 @@
/*
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 automatically generated by lister-gen
package v1beta1
import (
v1beta1 "k8s.io/api/events/v1beta1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
)
// EventLister helps list Events.
type EventLister interface {
// List lists all Events in the indexer.
List(selector labels.Selector) (ret []*v1beta1.Event, err error)
// Events returns an object that can list and get Events.
Events(namespace string) EventNamespaceLister
EventListerExpansion
}
// eventLister implements the EventLister interface.
type eventLister struct {
indexer cache.Indexer
}
// NewEventLister returns a new EventLister.
func NewEventLister(indexer cache.Indexer) EventLister {
return &eventLister{indexer: indexer}
}
// List lists all Events in the indexer.
func (s *eventLister) List(selector labels.Selector) (ret []*v1beta1.Event, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1beta1.Event))
})
return ret, err
}
// Events returns an object that can list and get Events.
func (s *eventLister) Events(namespace string) EventNamespaceLister {
return eventNamespaceLister{indexer: s.indexer, namespace: namespace}
}
// EventNamespaceLister helps list and get Events.
type EventNamespaceLister interface {
// List lists all Events in the indexer for a given namespace.
List(selector labels.Selector) (ret []*v1beta1.Event, err error)
// Get retrieves the Event from the indexer for a given namespace and name.
Get(name string) (*v1beta1.Event, error)
EventNamespaceListerExpansion
}
// eventNamespaceLister implements the EventNamespaceLister
// interface.
type eventNamespaceLister struct {
indexer cache.Indexer
namespace string
}
// List lists all Events in the indexer for a given namespace.
func (s eventNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Event, err error) {
err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
ret = append(ret, m.(*v1beta1.Event))
})
return ret, err
}
// Get retrieves the Event from the indexer for a given namespace and name.
func (s eventNamespaceLister) Get(name string) (*v1beta1.Event, error) {
obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
if err != nil {
return nil, err
}
if !exists {
return nil, errors.NewNotFound(v1beta1.Resource("event"), name)
}
return obj.(*v1beta1.Event), nil
}

View File

@ -0,0 +1,27 @@
/*
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 automatically generated by lister-gen
package v1beta1
// EventListerExpansion allows custom methods to be added to
// EventLister.
type EventListerExpansion interface{}
// EventNamespaceListerExpansion allows custom methods to be added to
// EventNamespaceLister.
type EventNamespaceListerExpansion interface{}