mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-07 18:33:51 +00:00
Merge pull request #74969 from tnozicka/fix-example-flake
Fix client-go fake client example flake Kubernetes-commit: d75ddcd0a44e0a66e16a508a868f4501ac3e250d
This commit is contained in:
commit
9163569417
172
Godeps/Godeps.json
generated
172
Godeps/Godeps.json
generated
@ -272,347 +272,347 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/admissionregistration/v1beta1",
|
"ImportPath": "k8s.io/api/admissionregistration/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/apps/v1",
|
"ImportPath": "k8s.io/api/apps/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/apps/v1beta1",
|
"ImportPath": "k8s.io/api/apps/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/apps/v1beta2",
|
"ImportPath": "k8s.io/api/apps/v1beta2",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/auditregistration/v1alpha1",
|
"ImportPath": "k8s.io/api/auditregistration/v1alpha1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/authentication/v1",
|
"ImportPath": "k8s.io/api/authentication/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/authentication/v1beta1",
|
"ImportPath": "k8s.io/api/authentication/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/authorization/v1",
|
"ImportPath": "k8s.io/api/authorization/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/authorization/v1beta1",
|
"ImportPath": "k8s.io/api/authorization/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/autoscaling/v1",
|
"ImportPath": "k8s.io/api/autoscaling/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/autoscaling/v2beta1",
|
"ImportPath": "k8s.io/api/autoscaling/v2beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/autoscaling/v2beta2",
|
"ImportPath": "k8s.io/api/autoscaling/v2beta2",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/batch/v1",
|
"ImportPath": "k8s.io/api/batch/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/batch/v1beta1",
|
"ImportPath": "k8s.io/api/batch/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/batch/v2alpha1",
|
"ImportPath": "k8s.io/api/batch/v2alpha1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/certificates/v1beta1",
|
"ImportPath": "k8s.io/api/certificates/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/coordination/v1",
|
"ImportPath": "k8s.io/api/coordination/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/coordination/v1beta1",
|
"ImportPath": "k8s.io/api/coordination/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/core/v1",
|
"ImportPath": "k8s.io/api/core/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/events/v1beta1",
|
"ImportPath": "k8s.io/api/events/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/extensions/v1beta1",
|
"ImportPath": "k8s.io/api/extensions/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/imagepolicy/v1alpha1",
|
"ImportPath": "k8s.io/api/imagepolicy/v1alpha1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/networking/v1",
|
"ImportPath": "k8s.io/api/networking/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/networking/v1beta1",
|
"ImportPath": "k8s.io/api/networking/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/policy/v1beta1",
|
"ImportPath": "k8s.io/api/policy/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/rbac/v1",
|
"ImportPath": "k8s.io/api/rbac/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/rbac/v1alpha1",
|
"ImportPath": "k8s.io/api/rbac/v1alpha1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/rbac/v1beta1",
|
"ImportPath": "k8s.io/api/rbac/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/scheduling/v1",
|
"ImportPath": "k8s.io/api/scheduling/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/scheduling/v1alpha1",
|
"ImportPath": "k8s.io/api/scheduling/v1alpha1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/scheduling/v1beta1",
|
"ImportPath": "k8s.io/api/scheduling/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/settings/v1alpha1",
|
"ImportPath": "k8s.io/api/settings/v1alpha1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/storage/v1",
|
"ImportPath": "k8s.io/api/storage/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/storage/v1alpha1",
|
"ImportPath": "k8s.io/api/storage/v1alpha1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/storage/v1beta1",
|
"ImportPath": "k8s.io/api/storage/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/fuzzer",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/fuzzer",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/roundtrip",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/roundtrip",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/naming",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/naming",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
||||||
"Rev": "ece2eb519b35dd4e85d2f93857bc7e9846d21083"
|
"Rev": "34682963544009672129d6e4b708ff1bb0ff376f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/klog",
|
"ImportPath": "k8s.io/klog",
|
||||||
|
@ -23,6 +23,7 @@ import (
|
|||||||
|
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
"k8s.io/client-go/informers"
|
"k8s.io/client-go/informers"
|
||||||
"k8s.io/client-go/kubernetes/fake"
|
"k8s.io/client-go/kubernetes/fake"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
@ -30,8 +31,8 @@ import (
|
|||||||
|
|
||||||
// TestFakeClient demonstrates how to use a fake client with SharedInformerFactory in tests.
|
// TestFakeClient demonstrates how to use a fake client with SharedInformerFactory in tests.
|
||||||
func TestFakeClient(t *testing.T) {
|
func TestFakeClient(t *testing.T) {
|
||||||
// Use a timeout to keep the test from hanging.
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
defer cancel()
|
||||||
|
|
||||||
// Create the fake client.
|
// Create the fake client.
|
||||||
client := fake.NewSimpleClientset()
|
client := fake.NewSimpleClientset()
|
||||||
@ -45,7 +46,6 @@ func TestFakeClient(t *testing.T) {
|
|||||||
pod := obj.(*v1.Pod)
|
pod := obj.(*v1.Pod)
|
||||||
t.Logf("pod added: %s/%s", pod.Namespace, pod.Name)
|
t.Logf("pod added: %s/%s", pod.Namespace, pod.Name)
|
||||||
pods <- pod
|
pods <- pod
|
||||||
cancel()
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -55,23 +55,19 @@ func TestFakeClient(t *testing.T) {
|
|||||||
// This is not required in tests, but it serves as a proof-of-concept by
|
// This is not required in tests, but it serves as a proof-of-concept by
|
||||||
// ensuring that the informer goroutine have warmed up and called List before
|
// ensuring that the informer goroutine have warmed up and called List before
|
||||||
// we send any events to it.
|
// we send any events to it.
|
||||||
for !podInformer.HasSynced() {
|
cache.WaitForCacheSync(ctx.Done(), podInformer.HasSynced)
|
||||||
time.Sleep(10 * time.Millisecond)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Inject an event into the fake client.
|
// Inject an event into the fake client.
|
||||||
p := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "my-pod"}}
|
p := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "my-pod"}}
|
||||||
_, err := client.CoreV1().Pods("test-ns").Create(p)
|
_, err := client.CoreV1().Pods("test-ns").Create(p)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("error injecting pod add: %v", err)
|
t.Fatalf("error injecting pod add: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait and check result.
|
|
||||||
<-ctx.Done()
|
|
||||||
select {
|
select {
|
||||||
case pod := <-pods:
|
case pod := <-pods:
|
||||||
t.Logf("Got pod from channel: %s/%s", pod.Namespace, pod.Name)
|
t.Logf("Got pod from channel: %s/%s", pod.Namespace, pod.Name)
|
||||||
default:
|
case <-time.After(wait.ForeverTestTimeout):
|
||||||
t.Error("Informer did not get the added pod")
|
t.Error("Informer did not get the added pod")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user