mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-25 14:41:53 +00:00
Merge pull request #64654 from atlassian/missing-error-handling
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add missing error handling in schema-related code **What this PR does / why we need it**: Adds missing error handling to a few places. **Which issue(s) this PR fixes** Updates #51457. Still more work to do to fix the issue - client generation code needs to be updated (addressed in https://github.com/kubernetes/kubernetes/pull/64664). **Release note**: ```release-note NONE ``` /kind bug /sig api-machinery Kubernetes-commit: 7786bd8c9a99974e2cda31940dd4a1ef0a31c2e5
This commit is contained in:
commit
f783e1bbe3
162
Godeps/Godeps.json
generated
162
Godeps/Godeps.json
generated
@ -268,327 +268,327 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/admissionregistration/v1alpha1",
|
"ImportPath": "k8s.io/api/admissionregistration/v1alpha1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/admissionregistration/v1beta1",
|
"ImportPath": "k8s.io/api/admissionregistration/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/apps/v1",
|
"ImportPath": "k8s.io/api/apps/v1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/apps/v1beta1",
|
"ImportPath": "k8s.io/api/apps/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/apps/v1beta2",
|
"ImportPath": "k8s.io/api/apps/v1beta2",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/authentication/v1",
|
"ImportPath": "k8s.io/api/authentication/v1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/authentication/v1beta1",
|
"ImportPath": "k8s.io/api/authentication/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/authorization/v1",
|
"ImportPath": "k8s.io/api/authorization/v1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/authorization/v1beta1",
|
"ImportPath": "k8s.io/api/authorization/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/autoscaling/v1",
|
"ImportPath": "k8s.io/api/autoscaling/v1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/autoscaling/v2beta1",
|
"ImportPath": "k8s.io/api/autoscaling/v2beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/batch/v1",
|
"ImportPath": "k8s.io/api/batch/v1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/batch/v1beta1",
|
"ImportPath": "k8s.io/api/batch/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/batch/v2alpha1",
|
"ImportPath": "k8s.io/api/batch/v2alpha1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/certificates/v1beta1",
|
"ImportPath": "k8s.io/api/certificates/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/coordination/v1beta1",
|
"ImportPath": "k8s.io/api/coordination/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/core/v1",
|
"ImportPath": "k8s.io/api/core/v1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/events/v1beta1",
|
"ImportPath": "k8s.io/api/events/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/extensions/v1beta1",
|
"ImportPath": "k8s.io/api/extensions/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/imagepolicy/v1alpha1",
|
"ImportPath": "k8s.io/api/imagepolicy/v1alpha1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/networking/v1",
|
"ImportPath": "k8s.io/api/networking/v1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/policy/v1beta1",
|
"ImportPath": "k8s.io/api/policy/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/rbac/v1",
|
"ImportPath": "k8s.io/api/rbac/v1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/rbac/v1alpha1",
|
"ImportPath": "k8s.io/api/rbac/v1alpha1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/rbac/v1beta1",
|
"ImportPath": "k8s.io/api/rbac/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/scheduling/v1alpha1",
|
"ImportPath": "k8s.io/api/scheduling/v1alpha1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/scheduling/v1beta1",
|
"ImportPath": "k8s.io/api/scheduling/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/settings/v1alpha1",
|
"ImportPath": "k8s.io/api/settings/v1alpha1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/storage/v1",
|
"ImportPath": "k8s.io/api/storage/v1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/storage/v1alpha1",
|
"ImportPath": "k8s.io/api/storage/v1alpha1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/api/storage/v1beta1",
|
"ImportPath": "k8s.io/api/storage/v1beta1",
|
||||||
"Rev": "655e4e87cb5a855657ad325d1a615cf870870c9d"
|
"Rev": "5f0d8f067e3bc465077d0333e891450326a577a3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/testing",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
||||||
"Rev": "49fb9c9ee47ede1ead7dc90a697c0652526b072c"
|
"Rev": "cce7a330881575ce32ac9f50852de77237194a55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto",
|
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto",
|
||||||
|
@ -36,6 +36,7 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
"k8s.io/apimachinery/pkg/runtime/serializer"
|
"k8s.io/apimachinery/pkg/runtime/serializer"
|
||||||
|
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
||||||
"k8s.io/client-go/pkg/apis/clientauthentication"
|
"k8s.io/client-go/pkg/apis/clientauthentication"
|
||||||
"k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1"
|
"k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1"
|
||||||
"k8s.io/client-go/pkg/apis/clientauthentication/v1beta1"
|
"k8s.io/client-go/pkg/apis/clientauthentication/v1beta1"
|
||||||
@ -51,9 +52,9 @@ var codecs = serializer.NewCodecFactory(scheme)
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
v1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"})
|
v1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"})
|
||||||
v1alpha1.AddToScheme(scheme)
|
utilruntime.Must(v1alpha1.AddToScheme(scheme))
|
||||||
v1beta1.AddToScheme(scheme)
|
utilruntime.Must(v1beta1.AddToScheme(scheme))
|
||||||
clientauthentication.AddToScheme(scheme)
|
utilruntime.Must(clientauthentication.AddToScheme(scheme))
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -25,6 +25,7 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
||||||
|
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
||||||
"k8s.io/client-go/discovery"
|
"k8s.io/client-go/discovery"
|
||||||
scalescheme "k8s.io/client-go/scale/scheme"
|
scalescheme "k8s.io/client-go/scale/scheme"
|
||||||
scaleappsint "k8s.io/client-go/scale/scheme/appsint"
|
scaleappsint "k8s.io/client-go/scale/scheme/appsint"
|
||||||
@ -143,13 +144,13 @@ type ScaleConverter struct {
|
|||||||
// Scales in autoscaling/v1 and extensions/v1beta1.
|
// Scales in autoscaling/v1 and extensions/v1beta1.
|
||||||
func NewScaleConverter() *ScaleConverter {
|
func NewScaleConverter() *ScaleConverter {
|
||||||
scheme := runtime.NewScheme()
|
scheme := runtime.NewScheme()
|
||||||
scaleautoscaling.AddToScheme(scheme)
|
utilruntime.Must(scaleautoscaling.AddToScheme(scheme))
|
||||||
scalescheme.AddToScheme(scheme)
|
utilruntime.Must(scalescheme.AddToScheme(scheme))
|
||||||
scaleext.AddToScheme(scheme)
|
utilruntime.Must(scaleext.AddToScheme(scheme))
|
||||||
scaleextint.AddToScheme(scheme)
|
utilruntime.Must(scaleextint.AddToScheme(scheme))
|
||||||
scaleappsint.AddToScheme(scheme)
|
utilruntime.Must(scaleappsint.AddToScheme(scheme))
|
||||||
scaleappsv1beta1.AddToScheme(scheme)
|
utilruntime.Must(scaleappsv1beta1.AddToScheme(scheme))
|
||||||
scaleappsv1beta2.AddToScheme(scheme)
|
utilruntime.Must(scaleappsv1beta2.AddToScheme(scheme))
|
||||||
|
|
||||||
return &ScaleConverter{
|
return &ScaleConverter{
|
||||||
scheme: scheme,
|
scheme: scheme,
|
||||||
|
@ -21,6 +21,7 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
"k8s.io/apimachinery/pkg/runtime/serializer/json"
|
"k8s.io/apimachinery/pkg/runtime/serializer/json"
|
||||||
"k8s.io/apimachinery/pkg/runtime/serializer/versioning"
|
"k8s.io/apimachinery/pkg/runtime/serializer/versioning"
|
||||||
|
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
||||||
"k8s.io/client-go/tools/clientcmd/api"
|
"k8s.io/client-go/tools/clientcmd/api"
|
||||||
"k8s.io/client-go/tools/clientcmd/api/v1"
|
"k8s.io/client-go/tools/clientcmd/api/v1"
|
||||||
)
|
)
|
||||||
@ -47,14 +48,8 @@ var (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
Scheme = runtime.NewScheme()
|
Scheme = runtime.NewScheme()
|
||||||
if err := api.AddToScheme(Scheme); err != nil {
|
utilruntime.Must(api.AddToScheme(Scheme))
|
||||||
// Programmer error, detect immediately
|
utilruntime.Must(v1.AddToScheme(Scheme))
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
if err := v1.AddToScheme(Scheme); err != nil {
|
|
||||||
// Programmer error, detect immediately
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
yamlSerializer := json.NewYAMLSerializer(json.DefaultMetaFactory, Scheme, Scheme)
|
yamlSerializer := json.NewYAMLSerializer(json.DefaultMetaFactory, Scheme, Scheme)
|
||||||
Codec = versioning.NewDefaultingCodecForScheme(
|
Codec = versioning.NewDefaultingCodecForScheme(
|
||||||
Scheme,
|
Scheme,
|
||||||
|
Loading…
Reference in New Issue
Block a user